mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 13:17:53 +00:00
[Common UI] Fix min/max bounds of mct-split-pane
WTD-1363. Use correct dimension (width or height) when determining maximum splitter position.
This commit is contained in:
parent
b524dc451f
commit
66f8ee7194
@ -155,7 +155,7 @@ define(
|
||||
// Enforce minimum/maximum positions
|
||||
function enforceExtrema() {
|
||||
position = Math.max(position, 0);
|
||||
position = Math.min(position, $element[0].offsetWidth);
|
||||
position = Math.min(position, getSize($element[0]));
|
||||
}
|
||||
|
||||
// Getter-setter for the pixel offset of the splitter,
|
||||
|
Loading…
Reference in New Issue
Block a user