Author: pyaschenko
Date: 2008-12-23 08:18:35 -0500 (Tue, 23 Dec 2008)
New Revision: 11991
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
https://jira.jboss.org/jira/browse/RF-2648
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
===================================================================
---
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-12-23
12:13:56 UTC (rev 11990)
+++
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-12-23
13:18:35 UTC (rev 11991)
@@ -399,6 +399,10 @@
var scrollOffsets = Position.realOffset(this.layer);
toolTipX = toolTipX + scrollOffsets[0];
toolTipY = toolTipY + scrollOffsets[1];
+ var dx = window.pageXOffset || document.documentElement.scrollLeft ||
document.body.scrollLeft || 0;
+ var dy = window.pageYOffset || document.documentElement.scrollTop ||
document.body.scrollTop || 0;
+ toolTipX -= dx;
+ toolTipY -= dy;
var layerdim = Element.getDimensions(this.layer);
var layerLeft = toolTipX;