|
|
|
@ -16985,8 +16985,8 @@ BI.extend(jQuery, {
|
|
|
|
|
getComboPosition: function (combo, popup, extraWidth, extraHeight, needAdaptHeight, directions, offsetStyle) { |
|
|
|
|
extraWidth || (extraWidth = 0); |
|
|
|
|
extraHeight || (extraHeight = 0); |
|
|
|
|
var maxHeight = $("body").bounds().height - extraHeight; |
|
|
|
|
maxHeight = Math.min(popup.attr("maxHeight") || maxHeight, maxHeight); |
|
|
|
|
var bodyHeight = $("body").bounds().height - extraHeight; |
|
|
|
|
var maxHeight = Math.min(popup.attr("maxHeight") || bodyHeight, bodyHeight); |
|
|
|
|
popup.resetHeight && popup.resetHeight(maxHeight); |
|
|
|
|
var position = $.getComboPositionByDirections(combo, popup, extraWidth, extraHeight, needAdaptHeight, directions || ['bottom', 'top', 'right', 'left']); |
|
|
|
|
switch (offsetStyle) { |
|
|
|
@ -17009,6 +17009,7 @@ BI.extend(jQuery, {
|
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
popup.resetHeight && popup.resetHeight(Math.min(bodyHeight - position.top, maxHeight)); |
|
|
|
|
return position; |
|
|
|
|
} |
|
|
|
|
});/** |
|
|
|
|