mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-25 15:29:17 +01:00
fix contextmenu bug when in which occures when in scrolling down in Gecko
This commit is contained in:
parent
466e423dbc
commit
b7d77a8588
@ -385,8 +385,12 @@ ContextMenu.prototype.popupMenu = function(ev) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!HTMLArea.is_ie) {
|
if (!HTMLArea.is_ie) {
|
||||||
var dx = x + div.offsetWidth - window.innerWidth + 4;
|
// var dx = x + div.offsetWidth - window.innerWidth + 4;
|
||||||
var dy = y + div.offsetHeight - window.innerHeight + 4;
|
// var dy = y + div.offsetHeight - window.innerHeight + 4;
|
||||||
|
|
||||||
|
var dx = x + div.offsetWidth - window.innerWidth - window.pageXOffset + 4;
|
||||||
|
var dy = y + div.offsetHeight - window.innerHeight - window.pageYOffset + 4;
|
||||||
|
|
||||||
if (dx > 0) x -= dx;
|
if (dx > 0) x -= dx;
|
||||||
if (dy > 0) y -= dy;
|
if (dy > 0) y -= dy;
|
||||||
div.style.left = x + "px";
|
div.style.left = x + "px";
|
||||||
|
Loading…
Reference in New Issue
Block a user