The scrollbar estimation function doesn't work for me (Chrome for OSX 10.7.5)
Here's the fix:
var w1 = $('div', div).innerWidth();
div.css('overflow-y', 'scroll');
// huyl: fix this function (doesn't work on chrome for mac at least)
// as per http://stackoverflow.com/a/10692895/161972
//var w2 = $('div', div).innerWidth();
var w2 = $('<div>').appendTo($('div', div)).width();
The scrollbar estimation function doesn't work for me (Chrome for OSX 10.7.5)
Here's the fix: