[common] fix bug 45005
This commit is contained in:
parent
1060de655f
commit
16903c287c
|
@ -573,7 +573,7 @@ define([
|
||||||
} else {
|
} else {
|
||||||
var cg = Common.Utils.croppedGeometry();
|
var cg = Common.Utils.croppedGeometry();
|
||||||
docH = cg.height - 10;
|
docH = cg.height - 10;
|
||||||
if (top + menuH > docH) {
|
if (top + menuH > docH + cg.top) {
|
||||||
if (fixedAlign && typeof fixedAlign == 'string') { // how to align if menu height > window height
|
if (fixedAlign && typeof fixedAlign == 'string') { // how to align if menu height > window height
|
||||||
m = fixedAlign.match(/^([a-z]+)-([a-z]+)/);
|
m = fixedAlign.match(/^([a-z]+)-([a-z]+)/);
|
||||||
top = offset.top - posMenu[m[1]][1] + posParent[m[2]][1] + this.offset[1] + (fixedOffset || 0);
|
top = offset.top - posMenu[m[1]][1] + posParent[m[2]][1] + this.offset[1] + (fixedOffset || 0);
|
||||||
|
|
Loading…
Reference in a new issue