[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:
Victor Woeltjen 2015-06-29 11:54:30 -07:00
parent b524dc451f
commit 66f8ee7194

View File

@ -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,