matiasgali / guillotine

jQuery plugin to crop images within an area (fully responsive), allowing to drag (touch support), zoom and rotate.
http://guillotine.js.org
326 stars 100 forks source link

Scaling Error in Safari and iOS #56

Closed niczem closed 8 years ago

niczem commented 8 years ago

After initialzing the .guillotine-canvas has a width of 0% and doesn't change even when its zoomed.

niczem commented 8 years ago

... I just tested in your demosite and it worked in safari. The problem seems to be somewhere in the way I added to my website. The weird thing is that it`s working in Chrome and Firefox. Project Link - valid for three days

niczem commented 8 years ago

New project link - valid for three days

matiasgali commented 8 years ago

Hi @niczem, please take a look at the CONTRIBUTING file.

If you found an issue provide the bare minimum code that would reproduce it to allow debugging it. If you have problems with your own implementation or have questions don't use the issue tracker, please refer to the community.

Most likely your problem is the same as in #3, you are initializing the plugin before the image gets fully loaded.

niczem commented 8 years ago

Sorry I didn't looked at the contributing file and just asked. So thank you very much that you helpen anyway!

matiasgali commented 8 years ago

If wrapping the call to the plugin in an image onload event, like explained in #3, doesn't fix your problem pass by Guillotine's chat room on Gitter to ask about your particular issue.