bbarakaci / fixto

A jQuery plugin for sticky positioning
MIT License
217 stars 57 forks source link

CSS Doesn't Reset on .destroy() #21

Closed gdvine closed 9 years ago

gdvine commented 9 years ago

fixto adds inline styles to the target element, but these styles are not removed on .destroy(). For resize events where fixto must be disabled and reenabled based on various widths, this causes havoc with the layout.

bbarakaci commented 9 years ago

It saves the original inline style values right before fixing and resets the original values when unfixed, stopped or destroyed. So, no added inline style should remain on the element. You can check it on this simple page: http://bbarakaci.github.io/fixto/dev3.html

If you could provide an example that behaves differently i could check it out.