-
Notifications
You must be signed in to change notification settings - Fork 884
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
Fix enforce boundary #484
Fix enforce boundary #484
Conversation
Whenvever enforceBoundary is set to false, the image cannot get smaller the original image size. Adding conditional that will skip this check if enforceBoundary = false
Awesome - thanks for the PR. I don't have any time this week, but I'll look at this first thing on Monday. |
Thanks @thedustinsmith 👍 |
Thanks @BVazquezAlvarez for finding the related issues, @thedustinsmith have you had a chance to review the PR? |
Thanks @jlane9 ! This fixed the issues I was having with enforceBoundary. |
It solves the problem for me also! Great job! |
@thedustinsmith Please, review this if you have time enough. It's a very important fix for enforce boundary. |
Haven't forgotten about this one. I've got time blocked off tomorrow. |
We were attempting to use the enforceBoundary toggle (knowing full well it was still experimental), but kept running into the issue where if the image was scaled out it would cause the image to be cropped and positioned all haphazardly. We think we've figured out the issue was due to minimum sizes were being set ex.
width = Math.min(width, self._originalImageWidth);
because the images themselves would not get any smaller only the position would change.