Skip to content
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

Issue with upload viewport for ensuing uploads #422

Closed
shaunrotoole opened this issue Nov 14, 2017 · 2 comments
Closed

Issue with upload viewport for ensuing uploads #422

shaunrotoole opened this issue Nov 14, 2017 · 2 comments

Comments

@shaunrotoole
Copy link

Hi I am using croppie within a modal, and it works great for the first upload. However, if attempting to update the picture the 2nd time the saved image appears to be zoomed in past the viewport selection.

My testpage is here:
https://www.lawyerland.com/_testbox/Croppie-2.5.1/test2.php

My custom JS file is here:
https://www.lawyerland.com/_testbox/Croppie-2.5.1/croppie-custom.js

I am thinking it is something minor. I tried doing a destroy after the first success, and a re-initialization of the croppie, but that didn't fix things.

@shaunrotoole
Copy link
Author

This is the same issue as: #352 ...Looking through those responses.

@shaunrotoole
Copy link
Author

croppie-custom.js.txt

I came up with a pretty good solution after sorting through some of the other responses. The workaround for me was to 1) create the croppie before toggling the modal on and 2)
destroy the croppie when the modal closes (regardless of image upload success). This is key if the modal gets closed without success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant