jquery-week-calendar
jquery-week-calendar copied to clipboard
ie7 (and 6) _findScrollBarWidth show/hide
If i hide calendar and then show it, _findscrollbarwidth continually gets called in ie 7/6. Then it basically crashes the browser. I can provide a sample page if need be.
Commenting out the code around 578 and always returning 16 will not crash the browser. Any ideas would be helpful, if i come up with a solution I will post it.
var div = $('<div style="width:50px;height:50px;overflow:hidden;position:absolute;top:-200px;left:-200px;"><div style="height:100px;"></div>').appendTo('body');
var width =$('div', div).innerWidth()- $('div', div.css('overflow-y', 'scroll')).innerWidth();
$(div).remove();
This seems to work across browsers (ff and ie tested). On your code it assigns the child var, but then freaks when you get inner width.
Having this issue too -- happens when using the grip to re-size events.
I've implemented the code above and it fixes the IE crash (Using IE9 with IE7 standards) when resizing events. Still works in Chrome.