WeCodePixels / theia-sticky-sidebar

Glues your website's sidebars, making them permanently visible while scrolling.
MIT License
569 stars 209 forks source link

Nested theiaStickySidebar doesn't work properly #57

Open Serpentsoft opened 6 years ago

Serpentsoft commented 6 years ago

Hey Guys,

I'm using theiaStickySidebar for the main website's content and sidebar and it working great until create another sticky sidebar for sharing buttons inside the main content and it working too BUT not when the main Sidebar be greater than the content.

A Fiddle live Example

Case - 1 (Not working properly) - The main sidebar is greater than the content: The main Sidebar is 7000 pixels height [.height-sidebar] - When scrolling down the share buttons section working but when you reach the bottom of the page and go up again it disappear because of a miss calculation of position.

Case - 2 (Working) The main sidebar lower than the content: Just change the class [.height-sidebar] to [1000px] and the share buttons section will be sticky when scrolling down and up with no problem.

Thanks for your great project.