mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-30 22:51:01 +02:00
Fixed problem with dhtmlxMenu overflowing at the top in windows with scroll bars - notified the developers, so this fix is most likely to be included in the next dhtmlxmenu release
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -382,11 +382,10 @@ function dhtmlXMenuObject(baseId, skin) {
|
||||
x = 0;
|
||||
}
|
||||
if (y+h > my && this.menuY2 != null) {
|
||||
y = srcY + srcH - h + 2;
|
||||
if (y < 2) {
|
||||
// Don't let the menu overflow at the top
|
||||
y = 2;
|
||||
}
|
||||
var sy = Math.max(
|
||||
(_isIE?document.documentElement:document.getElementsByTagName("html")[0]).scrollTop,
|
||||
document.body.scrollTop);
|
||||
y = Math.max(srcY + srcH - h - sy + 2, 2) + sy;
|
||||
// open from top level
|
||||
if (this.itemPull[id] != null && !this.context) {
|
||||
if (this.itemPull[id]["parent"] == this.idPrefix+this.topId) y = y - this.base.offsetHeight;
|
||||
|
Reference in New Issue
Block a user