garand / sticky

jQuery Plugin for Sticky Objects
Other
3.3k stars 1.06k forks source link

Any way for responsive width #98

Open reddo opened 10 years ago

reddo commented 10 years ago

I was wondering if there's a way to recalculate the width of the sticked element when window resizes?

Currently the width is calculated on page load and even if the window resizes and the parent element changes width, the sticked element stays the same, which in no way is responsive. If I reload the page the width is ok again.

ruudbwai commented 10 years ago

second that...have you found a solution to this?

reddo commented 10 years ago

No, unfortunately I haven't. I ended up using bootstrap's affix (I was using bootstrap anyway)

jameynakama commented 10 years ago

Potential fix: https://github.com/garand/sticky/pull/107