jQuery-slimScroll
jQuery-slimScroll copied to clipboard
slim scroll adds inline width attribute to target div
breaks the layout:

bindings are as follows
$.jqMVC
.bind('slimscroll',function(){
$('.scroll').each(function(){
$(this)
.slimScroll({destroy: true})
.slimScroll({
height: $(this).css('height'),
alwaysVisible:true,
railVisible: true,
railColor: '#222',
railOpacity: 0.3,
distance:'0'
});
});
})
it would appear the plugin is aimed at the low hanging fruit of developers, but for properly designed css/html layout it breaks badly.
If your div (can't see from the snapshot) is a block element then width: auto will have the same effect as width 100%. You can also take a look at the documentation: http://rocha.la/jQuery-slimScroll.
width - Width in pixels of the visible scroll area. Stretch-to-parent if not set. Default: none.
The 'default' part is actually not true as slimscroll() passes width: auto by default instead.