From 38a3725cc105a5952abb17e5e9776eace8efcba2 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 27 Jul 2016 12:18:00 +0200 Subject: [PATCH] Using page(X|Y)Offset instead of scroll(X|Y) IE11 doesn't support these and we have to support it :( Fixes #2065 --- wcfsetup/install/files/js/WoltLab/WCF/Dom/Util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Dom/Util.js b/wcfsetup/install/files/js/WoltLab/WCF/Dom/Util.js index a28e697761..3427d48026 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Dom/Util.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Dom/Util.js @@ -154,8 +154,8 @@ define(['Environment', 'StringUtil'], function(Environment, StringUtil) { var rect = el.getBoundingClientRect(); return { - top: rect.top + window.scrollY, - left: rect.left + window.scrollX + top: rect.top + window.pageYOffset, + left: rect.left + window.pageXOffset }; }, -- 2.20.1