mzubala / jquery-custom-scrollbar

189 stars 102 forks source link

Completely hiding divs when using %'s #64

Open raspberryconverse opened 8 years ago

raspberryconverse commented 8 years ago

I was so excited to find a custom scrollbar plugin that will work on Firefox, but as I'm trying to implement it, it seems to have resized my divs to nothing. capture On the left is the version with a different scrollbar plugin that seems to only work in Chrome. The right is what happens when I implement your plugin.

Here is my code: production.html.txt styles.css.txt

It seems like this doesn't work if you're using %'s to size your divs. Is there a way around this or a suggestion to make it work? Using %'s to define my divs has been an easier way to make my design responsive than writing media queries. Perhaps this is lazy coding on my part, but I like that it can make sure the maincontent div takes up exactly half of the screen. Also, the sitewrap div needs to be 100% to hide the navigation.

Any help will be greatly appreciated.