WeCodePixels / theia-sticky-sidebar

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

Top margin when content is too big #1

Closed elisafern12 closed 10 years ago

elisafern12 commented 10 years ago

Hello!

First, thanks you for your plugin. I have tried many and yours was by far the best. I have a question concerting the top margin of a sticky elements.

I took the example straight from your rep (3 columns), and added a lot more text content in the "Left Side bar" (I guess this is the same as the “right Sidebar”).

When that happens, the additional top margin does not work. Therefore, when I scroll, some text becomes invisible. Is is possible to make it so that the div always sticks on top (the same way when we scroll back up? the margin makes it that the div sticks to the top, without hiding any content).

Let me know if you understand.

Thank you so much in advance!

liviucmg commented 10 years ago

Hi,

First of all, thank you for your interest in the plugin and my apologies for replying so late.

I haven't been able to replicate the issue. Can you provide a file as an example? Also, what browser are you using?

Note that if the content is taller than the browser, the sidebar will always be scrollable more or less. Otherwise you wouldn't be able to view its entire contents (i.e. the text from the bottom).

Cheers!