somewebmedia / hc-sticky

JavaScript library that makes any element on your page visible while you scroll.
https://somewebmedia.github.io/hc-sticky/
MIT License
462 stars 114 forks source link

Long sidebar menu is cut off at the bottom when sticked #58

Open litajupiter opened 5 years ago

litajupiter commented 5 years ago

I'm using this on a long, mobile-only menu that gets cut off at the bottom when I scroll. As of right now, this is all I'm using: $('#my-element-here').hcSticky({ stickTo: '#content' });

Do I need to enable/disable something to allow the menu to be scrollable when it is taller than the viewport? I thought followScroll being true by default would allow for this.

stormitornado commented 5 years ago

I have that problem, but nothing really helped me, it happens only when sidebar just a little taller, than viewport Wherein I have settings with "top" > 0, and "bottom" > 0;

"bottom": 0, didn't help "followScroll" doesn't affect also neither "update" nor "refresh" commands doesn't change anything I think I'll have to rewrite some parts of this plugin, to find a solution