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

Already on GitHub? Sign in to your account

Refresh slimscroll height for content changes #54

Merged
merged 1 commit into from Mar 21, 2013

Conversation

Projects
None yet
5 participants
Contributor

chawkinsuf commented Mar 16, 2013

Added the processing of { height: 'auto' } for re-initializing the height of an existing instance. The div heights are recalculated based on the original wrapping div. This ensures a proper resize when using max-height to set the height of the original wrapping div.

Contributor

sualko commented Mar 18, 2013

+1

ibc commented Mar 20, 2013

+1

rochal added a commit that referenced this pull request Mar 21, 2013

Merge pull request #54 from chawkinsuf/master
Refresh slimscroll height for content changes

@rochal rochal merged commit f9cca71 into rochal:master Mar 21, 2013

can you add this code too, for refresh the height with custom value.
Line 117
after if ('height' in options && options.height == 'auto')
...

      if ('height' in options && options.height != 'auto') {
          me.parent().css('height', o.height);
          me.css('height', o.height);
        }

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment