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

Fix enforce boundary #484

Merged
merged 3 commits into from
Mar 16, 2018
Merged

Fix enforce boundary #484

merged 3 commits into from
Mar 16, 2018

Conversation

jlane9
Copy link
Contributor

@jlane9 jlane9 commented Feb 22, 2018

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.

John Lane added 3 commits February 21, 2018 17:07
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
@thedustinsmith
Copy link
Contributor

Awesome - thanks for the PR. I don't have any time this week, but I'll look at this first thing on Monday.

@jlane9
Copy link
Contributor Author

jlane9 commented Feb 23, 2018

Thanks @thedustinsmith 👍

@BVazquezAlvarez
Copy link

BVazquezAlvarez commented Feb 28, 2018

Excellent. It works on my test project. This PR will fix issue #258 and #247

@jlane9
Copy link
Contributor Author

jlane9 commented Feb 28, 2018

Thanks @BVazquezAlvarez for finding the related issues, @thedustinsmith have you had a chance to review the PR?

@ericpoulinnz
Copy link

Thanks @jlane9 ! This fixed the issues I was having with enforceBoundary.

@mrfazolka
Copy link

It solves the problem for me also! Great job!

@BVazquezAlvarez
Copy link

@thedustinsmith Please, review this if you have time enough. It's a very important fix for enforce boundary.

@thedustinsmith
Copy link
Contributor

Haven't forgotten about this one. I've got time blocked off tomorrow.

@thedustinsmith thedustinsmith merged commit 3a61566 into Foliotek:master Mar 16, 2018
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

Successfully merging this pull request may close these issues.

5 participants