summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2016-10-12 15:26:45 +0100
committerAlex Pott2016-10-12 15:26:45 +0100
commita1af65378ab8020d47b254ba9a7f8c6dd71a7935 (patch)
treef20cdfc11489b2d076f87ad83e46edae3f33e5bf
parent4b505654c14730625767f14e2e2e761d8f361ce5 (diff)
Issue #2702891 by sjsneve: Internet Explorer adds excessive padding to body when toolbar present and page resized after scroll
-rw-r--r--core/misc/displace.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/misc/displace.js b/core/misc/displace.js
index 3315f2e..3e89c56 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