-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Safari] Images uploads with incorrect size #1975
Comments
Is it a regression? |
It is, can't reproduce it on our demo page. |
From what I can see that's due to |
OK, the workaround that I found is really ugly, but I can't think of something better right now: https://github.com/ckeditor/ckeditor5-image/compare/t/ckeditor5/1975?expand=1
|
I've tested your solution and it fixes this problem. |
The same issue occurs on mobile Safari (iOS). |
β¦e the image has the right size. Closes ckeditor/ckeditor5#1975.
I propose a more subtle solution based on https://stackoverflow.com/a/29804327/1485219. @Mgsy can you check it out? |
LGTM. Instead of a timeout you force style recalculation by accesing a property. BTW, do we need the last |
You're right. The second one is obsolete. Updated the branch. |
Works fine π |
OMFG, I wanted to check how to make this hack pass our tests in Safari, but this turned out to be a pandora's box: https://github.com/ckeditor/ckeditor5-image/issues/312. |
Fix: Worked around Safari's image size bug. Closes ckeditor/ckeditor5#1975.
Is this a bug report or feature request? (choose one)
π Bug report
π» Version of CKEditor
Latest master
π Steps to reproduce
β Expected result
The image is uploaded with a correct size.
β Actual result
The image is uploaded with incorrect size.
π Other details that might be useful
Screenshot
Tested on Safari 12.1.
The text was updated successfully, but these errors were encountered: