Issue with IE9 and Displaying Cropper on init

49 views
Skip to first unread message

Jeff Widmer

unread,
Apr 12, 2011, 10:25:29 AM4/12/11
to javascript-image-cropper-ui
The cropper has worked perfectly for quite some time but ran into an
issue with IE9. I have found that the test for this.img.complete on
line 398 returns false in IE9 (not sure why). To work-around the
issue I added a test for IE9:
this.isIE9 = /MSIE\s9/.test(navigator.userAgent);
And then check to see if this is IE9 and then call this.onLoad()
if( this.img.complete || this.isWebKit || this.isIE9) {

I imagine this is not the best solution. If anyone knows exactly why
this is happening in IE9 and has a better solution let me know.
Thanks,
-Jeff
Reply all
Reply to author
Forward
0 new messages