dollarshaveclub / stickybits

Stickybits is a lightweight alternative to `position: sticky` polyfills 🍬
https://github.com/yowainwright/stickybits
MIT License
2.19k stars 168 forks source link

Stickybits should not add `position:absolute` after scrolling. #630

Closed Esger closed 4 years ago

Esger commented 4 years ago

Requested Update

Please roll back change that sets position:absolute introduced in version 3.7.0

Why Is This Update Needed?

I have an element with position:sticky; bottom:0; When scrolling, the element becomes perfectly sticky to the bottom. But when scrolling back, the element should scroll along with the other elements at a certain point, stickybits version 3.7.0 then gives it position:absolute which makes it loose its width (it's a <div> and it should stay 100% width). So position:sticky should be restored or not even changed in the first place.

Are There Examples Of This Requested Update Elsewhere?

Not sure

Read about references issues here. Provide paragraph text responses to each header.