Commit a1af6537 authored by alexpott's avatar alexpott

Issue #2702891 by sjsneve: Internet Explorer adds excessive padding to body...

Issue #2702891 by sjsneve: Internet Explorer adds excessive padding to body when toolbar present and page resized after scroll
parent 4b505654
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment