Popper-core: scrollbar size not properly computed

Created on 15 Dec 2017  路  7Comments  路  Source: popperjs/popper-core

Most helpful comment

Adding top: 0 to the CSS class fixed this for me.

All 7 comments

I think in this specific case the scrollbar appears for a microsecond and then disappears, and Popper.js caches the size of the scrollbar and doesn't update it once it disappears.

I think you're 100% correct.

I just want to mention that this issue is not present when I tried out Tooltipster. The tooltip was positioned perfectly with that package.

Perhaps look at their source code to see how they are doing calculations?

https://github.com/iamceege/tooltipster

I want to add that @YoranBrondsema's suggestions worked like a charm for us! Both solutions (placing the poppers earlier in the DOM or using CSS to place it at the top) work to prevent the momentary flash of the scrollbar and the corresponding small jumps of the popper.

Adding top: 0 to the CSS class fixed this for me.

One year later and still not fixed.

This should be fixed in Popper 2 because we removed the broken logic all together.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rosskevin picture rosskevin  路  6Comments

FezVrasta picture FezVrasta  路  3Comments

ConneXNL picture ConneXNL  路  3Comments

Sawtaytoes picture Sawtaytoes  路  5Comments

Johann-S picture Johann-S  路  3Comments