jquery-week-calendar icon indicating copy to clipboard operation
jquery-week-calendar copied to clipboard

ie7 (and 6) _findScrollBarWidth show/hide

Open thorst opened this issue 13 years ago • 2 comments

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.

thorst avatar Jan 16 '12 21:01 thorst

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.

thorst avatar Jan 17 '12 14:01 thorst

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.

XVII avatar Jul 12 '12 00:07 XVII