We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5fb1b6 + 7b3a56e commit f9cca71Copy full SHA for f9cca71
jquery.slimscroll.js
@@ -102,6 +102,15 @@
102
// check if we should scroll existing instance
103
if ($.isPlainObject(options))
104
{
105
+ // Pass height: auto to an existing slimscroll object to force a resize after contents have changed
106
+ if ( 'height' in options && options.height == 'auto' ) {
107
+ me.parent().css('height', 'auto');
108
+ me.css('height', 'auto');
109
+ var height = me.parent().parent().innerHeight();
110
+ me.parent().css('height', height);
111
+ me.css('height', height);
112
+ }
113
+
114
if ('scrollTo' in options)
115
116
// jump to a static point
0 commit comments