Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.reinitialise() does not urge to display scrollbar when element not visible #340

Closed
lexected opened this issue Aug 22, 2016 · 3 comments

Comments

@lexected
Copy link

Let's say you have

<div style="display: none" id="parent">
    <div class=".scroll-pane" id="child"></div>
</div>
  1. Load contents into the #child and perform api.initialise()
  2. Set #parent's display to something different than none to make it visible
  3. The scroll bar will not show and the data overflow of #child will remain hidden.

I would not say this is generally desired, since you often want to load data into divs before they're made visible, and display: none is the preferred version of hiding things by jQuery effects.

Not tested with visibility: hidden.

@vitch
Copy link
Owner

vitch commented Aug 22, 2016

jScrollPane can only calculate heights when content is visible. auto_reinitialise could maybe help you or you could show the content, initialise the scrollpane and hide the content.

Unfortunately I don't have time to support jScrollPane these days so it is unlikely I'll make any changes - if you want to submit a PR which automatically shows, calculates and hides the scrollpane if it's hidden then I'd be happy to merge it...

@lexected
Copy link
Author

I'll dive into it tonight! :) ... hope I'll be successful....

@illuusio
Copy link
Collaborator

Is this still issue?

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

No branches or pull requests

3 participants