Skip to content

Refresh slimscroll height for content changes#54

Merged
rochal merged 1 commit intorochal:masterfrom
chawkinsuf:master
Mar 21, 2013
Merged

Refresh slimscroll height for content changes#54
rochal merged 1 commit intorochal:masterfrom
chawkinsuf:master

Conversation

@chawkinsuf
Copy link
Contributor

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.

@sualko
Copy link
Contributor

sualko commented Mar 18, 2013

+1

@ibc
Copy link

ibc commented Mar 20, 2013

+1

rochal added a commit that referenced this pull request Mar 21, 2013
Refresh slimscroll height for content changes
@rochal rochal merged commit f9cca71 into rochal:master Mar 21, 2013
@caca9512
Copy link

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments