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

Adds the new option 'heightIgnoreClass' to manage more complex layout… #288

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moonClimber
Copy link

@moonClimber moonClimber commented Aug 27, 2017

… (with other elements between current scroll element and its parent)

it would be useful to integrate this new option to manage more complex layout.
Here is my case

<div id="mainContainer">
  <div id="otherElement1" class="listScrollIgnore">any content...</div>
  <div id="otherElement2" class="listScrollIgnore">any content...</div>
  <div id="elementToScroll" class="listScrollIgnore">my list</div>
</div>

By calling

$('#elementToScroll').slimScroll({
        height:'auto',
        heightIgnoreClass: 'listScrollIgnore'
    });

everything works fine since the outerHeights of otherElement1 and otherElement2 are ignored.

… (with other elements between current scroll element and its parent)
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

Successfully merging this pull request may close these issues.

None yet

1 participant