[common] fix bug 45005

This commit is contained in:
Maxim Kadushkin 2020-09-08 17:51:54 +03:00
parent 1060de655f
commit 16903c287c

View file

@ -573,7 +573,7 @@ define([
} else {
var cg = Common.Utils.croppedGeometry();
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
m = fixedAlign.match(/^([a-z]+)-([a-z]+)/);
top = offset.top - posMenu[m[1]][1] + posParent[m[2]][1] + this.offset[1] + (fixedOffset || 0);