MarginTop not being calcuted properly until browser resized
jaetea opened this issue · comments
I'm running this in an angular app. The one component I have made sticky with a marginTop of 72 doesn't stick until its past the top of the browser window, then will jump to where it should be.
If I resize my browser window it will work properly.
Intial page load (red is sticky element)
Element has scrolled off top of screen
Element then jumps to where it should be
Resize browser (horizontal/vertically)
@jaetea any luck im running into this as well.. I have a sticky header globally that I think is confusing it
@robertsmith2 @jaetea should be fixed in version 1.1.0!
For any more corner cases there is now a recalculate method exposed.
Thanks for the bug report!