WeCodePixels / theia-sticky-sidebar

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

How to disable it on resize? #20

Closed adods closed 8 years ago

adods commented 8 years ago

Is there any way to disable it? On responsive page when the screen resolution changed from wide to narrow screen the sidebar always moved to the bottom, so the sticky needs to be disabled.

liviucmg commented 8 years ago

You can use the minWidth option for that. For example if you're content is responsive at 900px, you set minWidth to 901; any screen width below that will disable the sidebar.