Skip to content

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.

1 participant