-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Various issues in IE8 #319
Comments
Seems to be this code where things start going wrong:
Both of the variables end up being 0. Thought strangely, while debugging, as soon as I start looking in |
You are right! Thank you! Here is a quick solution: ...
var image = $clone[0],
naturalWidth = image.naturalWidth || image.width,
naturalHeight = image.naturalHeight || image.height;
... |
Great; will give it a go. Thanks! |
Would you accept a PR with the code you pasted here for now? Would like to put this fix in, but don't want to patch our copy if a future update might revert the fix. |
Thank you! But I had fixed it in my local repo and will release it in the next version. |
Great, thanks! |
It's been a while, but I just got around to trying to update this. I took the latest build (from about a week ago?) and it's broken in IE8 still/again :( I tested the test page here, and it has the same issues. The homepage suggests you're still supporting IE8 - is this the case? |
You are right. I might miss something. v0.10.1 stiil works on IE8. |
I see. I fix an event issue on IE10 (#394), but cause another issue on IE8... |
Still having issues; just trying to debug. While doing so, I noticed the demo page throws JS errors in IE8 (coming from "carbon.js", possibly ad scripts?) The other issues might be our code rather than the cropper, but will post back if I think there are still issues here. |
I'm trying to debug our IE8 issues.. The first problem seems to be that a lot of the values (such as the I tracked this back to in the This seems to be caused by the code shown here - I'm not sure why I can't cause an equivalent bug in your test page though. It seems like setting |
My guess is that |
Yes, should bind function getNaturalSize(image, callback) {
var newImage;
// Modern browsers
if (image.naturalWidth) {
return callback(image.naturalWidth, image.naturalHeight);
}
// IE8
newImage = new Image();
newImage.onload = function () {
callback(this.width, this.height);
};
newImage.src = image.src;
} |
Great; I'll try and give it a test this week and see if it's all working as expected now. Thanks! |
Thank you for reporting these bugs, you really did a great work! |
Np; thanks for fixing up the issues :) I cloned your repo to try and make a build with this latest change for testing, but when I run
I don't seem to be able to get gulp to run (says not installed), which I think might be related to Any chance you could do a build with these latest changes (even if not a normal release, just provide the dist folder I can use)? |
Sorry for this, please try again later. I think the files in the |
Sorry, I meant are you able to run the build script (assuming it works for you) and send me the dist folder (not commit it)? You could email to danny @ tuppeny .com. If you plan to do a release soon anyway, then I'm happy to wait for that. |
Already sent an email with released files. |
Ok, I have fixed it!
Using I cannot explain this difference, but I think swapping it makes sense. |
Are you test it on a native IE8 browser? |
I tested both in IE8 (on Windows Vista) and in IE11 (on Windows 8.1) using the Emulation setting (I'm aware that doesn't behave exactly the same, so tend to just use it for convenience and re-test in IE8 once it was fixed in IE11's emulation mode). In both real IE and "emulated IE" the same issue exists; we see |
@DanTup Good, thank you, I will turn to use |
The readme says IE8 is supported, but we're having issues making this work. Even the demo page is broken in IE8. The textboxes all say NaN, and the dragging has strange behaviour.
The text was updated successfully, but these errors were encountered: