question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In IE11, when the popper is near the viewport boundary, extra spacing is added to the page creating a scrollbar

See original GitHub issue

https://codepen.io/caseyjhol/pen/BVBOVL

popper_scroll

Steps to reproduce the problem

  1. Click the ref element

What is the expected behavior?

The green pop element appears above the ref element and the rest of the page remains as is with no scrollbar.

What went wrong?

Extra spacing is created below the ref element, creating a scrollbar.

This appears to work properly in all browsers except IE10 and IE11.

I’m using a click listener for the popper (and showing it using display: block to make the issue easier to see, but it persists without one as well (https://codepen.io/caseyjhol/pen/VdZGRY). This issue is the cause of twbs/bootstrap#24851. I go into more detail here: https://github.com/twbs/bootstrap/issues/24851#issuecomment-392584969.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
craigjennings11commented, Mar 19, 2019

I had the same issue, but was able to get around it by disabling gpuAcceleration.

new Popper(..., ..., {
  modifiers: {
    computeStyle: {
      gpuAcceleration: false,
    },
  },
});
0reactions
caseyjholcommented, Mar 20, 2019

@craigjennings11 Awesome - looks like that works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

In IE11, when the popper is near the viewport boundary, extra ...
Extra spacing is created below the ref element, creating a scrollbar. This appears to work properly in all browsers except IE10 and IE11....
Read more >
How to make popper show the scrollbars when it doesn't fit the ...
querySelector("#reference"); const popper = document. ... You need to set the width and height of the tooltip in order to see the scrollbar....
Read more >
Browser Support | Popper
Popper supports modern versions of Chrome, Firefox, Safari, Edge. ... root viewport boundary, it can appear to lag behind while scrolling (not 1:1...
Read more >
https://www.presidio.gov/Shared%20Documents/Menu/s...
scss/mixins/_border-radius.scss","../. ... scss/utilities/_spacing.scss",". ... n }\n\n @if $rfs-class == \"disable\" {\n // Adding an extra class increases ...
Read more >
Patch - Pagure.io
_popper = new Popper(referenceElement, this._menu, this._getPopperConfig()); + } // If this is a touch-enabled device we add extra + // empty mouseover ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found