Merge commit 'a4cb4d96face514924387d34746b3148848ac092' into zope-2.13
[Plinn.git] / skins / ajax_scripts / javascript_events_api.js
index b4df40e..2539fd9 100644 (file)
@@ -220,7 +220,7 @@ function _build_getWindowScrollX() {
        }
        else {
                return function(){
        }
        else {
                return function(){
-                       return document.body.scrollLeft;
+                       return document.documentElement.scrollLeft;
                };
        }
 }
                };
        }
 }
@@ -233,7 +233,7 @@ function _build_getWindowScrollY() {
        }
        else {
                return function(){
        }
        else {
                return function(){
-                       return document.body.scrollTop;
+                       return document.documentElement.scrollTop;
                };
        }
 }
                };
        }
 }