From a1af65378ab8020d47b254ba9a7f8c6dd71a7935 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Wed, 12 Oct 2016 15:26:45 +0100 Subject: [PATCH] Issue #2702891 by sjsneve: Internet Explorer adds excessive padding to body when toolbar present and page resized after scroll --- core/misc/displace.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/misc/displace.js b/core/misc/displace.js index 3315f2ea53..3e89c563ec 100644 --- a/core/misc/displace.js +++ b/core/misc/displace.js @@ -165,7 +165,7 @@ var placement = $el.offset()[horizontal ? 'left' : 'top']; // Subtract scroll distance from placement to get the distance // to the edge of the viewport. - placement -= window['scroll' + (horizontal ? 'X' : 'Y')] || document.documentElement['scroll' + (horizontal) ? 'Left' : 'Top'] || 0; + placement -= window['scroll' + (horizontal ? 'X' : 'Y')] || document.documentElement['scroll' + (horizontal ? 'Left' : 'Top')] || 0; // Find the displacement value according to the edge. switch (edge) { // Left and top elements displace as a sum of their own offset value -- GitLab