Author: bleathem
Date: 2014-01-17 16:26:33 -0500 (Fri, 17 Jan 2014)
New Revision: 23284
Modified:
branches/enterprise/3.3.1.SP4/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
RF-13493: Further corrections to the fix to RF-11368, chagning the scroll value used by
IE8
Modified:
branches/enterprise/3.3.1.SP4/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
===================================================================
---
branches/enterprise/3.3.1.SP4/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2014-01-17
19:32:51 UTC (rev 23283)
+++
branches/enterprise/3.3.1.SP4/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2014-01-17
21:26:33 UTC (rev 23284)
@@ -523,8 +523,8 @@
var divOffset = Position.cumulativeOffset(innerDiv);
var scrollOffset = Position.realOffset(this.element);
var windowScroll = {};
- windowScroll.top = window.pageYOffset !== null ? window.pageYOffset :
document.body.scrollTop;
- windowScroll.left = window.pageXOffset !== null ? window.pageXOffset :
document.body.scrollLeft;
+ windowScroll.top = ('pageYOffset' in window) ? window.pageYOffset :
document.documentElement.scrollTop;
+ windowScroll.left = ('pageXOffset' in window) ? window.pageXOffset :
document.documentElement.scrollLeft;
var deltaX = divOffset[0] - parOffset[0];
var deltaY = divOffset[1] - parOffset[1];