[Zope-CVS] CVS: Products/CompositePage/common - pdlib.js:1.6
Godefroid Chapelle
gotcha at swing.be
Fri May 21 04:59:37 EDT 2004
Update of /cvs-repository/Products/CompositePage/common
In directory cvs.zope.org:/tmp/cvs-serv26435
Modified Files:
pdlib.js
Log Message:
small fix for IE6 on XP
=== Products/CompositePage/common/pdlib.js 1.5 => 1.6 ===
--- Products/CompositePage/common/pdlib.js:1.5 Thu Feb 26 16:38:12 2004
+++ Products/CompositePage/common/pdlib.js Fri May 21 04:59:35 2004
@@ -112,8 +112,9 @@
pd_hideContextMenu();
var page_w = window.innerWidth || document.body.clientWidth;
var page_h = window.innerHeight || document.body.clientHeight;
- var page_x = window.pageXOffset || document.body.scrollLeft;
- var page_y = window.pageYOffset || document.body.scrollTop;
+ // have to check documentElement in some IE6 releases
+ var page_x = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft;
+ var page_y = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
if (menunode.offsetWidth >= pd_max_contextmenu_width) {
// It's likely that the browser ignored "display: table"
More information about the Zope-CVS
mailing list