Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions jquery.slimscroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@
borderRadius: '7px',

// sets border radius of the rail
railBorderRadius : '7px'
railBorderRadius : '7px',

// whether the scroll div should take the height of its parent when the height is set to auto
matchParentHeight : true,
};

var o = $.extend(defaults, options);
Expand Down Expand Up @@ -151,7 +154,7 @@
}

// optionally set height to the parent's height
o.height = (o.height == 'auto') ? me.parent().height() : o.height;
o.height = ((o.height == 'auto')&&(o.matchParentHeight === true)) ? me.parent().height() : o.height;

// wrap content
var wrapper = $(divS)
Expand Down