Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

scroll bar is not applying to div having display:none #34

Closed
rover886 opened this issue Feb 10, 2015 · 2 comments
Closed

scroll bar is not applying to div having display:none #34

rover886 opened this issue Feb 10, 2015 · 2 comments

Comments

@rover886
Copy link

I am facing one issue related to scroll bar.

My HTML structure is like :

<div class="questiondiv scrollbar-outer">
   <div class='qdiv'>
   </div>
   <div class='qdiv'>
   </div>
   <div class='qdiv'>
   </div>
   <div class='qdiv'>
   </div>
</div>

In an .js file on document.ready() I am calling $('.scrollbar-outer').scrollbar(); and after that I am setting 'display:none' to some div having class 'qdiv'. at a time only one div having class 'qdiv' will be having 'display:block'.

Problem is, when page get loaded, at that time the 'qdiv' which is currently having display:block is come with Customizable Scrollbar but when I set display:block to other qdiv Customizable Scrollbar will not work (default scrollbar get active).

@gromo
Copy link
Owner

gromo commented Feb 10, 2015

Can you prepare example of incorrect behavior on jsFiddle.net ?

@rover886
Copy link
Author

I tried in jsFiddle as you said it's working fine there also I tried with creating an simple HTML page it's working there also. so I started digging why it's not working in my project, last night I come to know that because of an another JS and CSS scrolls are getting hide in another div.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants