Hello @fengyuanchen ,
Thanks for cropper script. Really helpful one.
I have an annoying issue with the cropper inside modal.
The modal show event is triggered on input upload form. So if I select a file from PC a modal shows up. The issue is that the preview doesn't fit the modal box. The image/cropper is to small.
On the other hadn if I change the browser size it automatically fit the modal.
I tried the stuff from https://github.com/fengyuanchen/cropper/issues/85 but don't understand where the data: originData comes from. Even using the example from https://github.com/fengyuanchen/cropper/blob/master/examples/cropper-in-modal.html doesn't work.
Would really appreciate your help.
You must initialize the cropper only when the modal has been shown completely!!!!!!!!!!!!!!!!!!!!!!!!
@fengyuanchen Thanks a lot. This actually helped.
cant u please show me our solution?, I have the same issue
@MironD sorry mate.
It has been a year and a half since I worked on the project. Don't have the code and I am not working for this client/company anymore.
Maybe you could create a new issue and post you code.
You just set "backdrop: false" in bootstrap modal and work find :)
Most helpful comment
You must initialize the cropper only when the modal has been shown completely!!!!!!!!!!!!!!!!!!!!!!!!