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 auto-crop #31

Merged
merged 2 commits into from
Mar 19, 2019
Merged

fix auto-crop #31

merged 2 commits into from
Mar 19, 2019

Conversation

nd0ut
Copy link
Member

@nd0ut nd0ut commented Mar 18, 2019

This module was copied from original widget source, but I forgot to check crop settings for false value.

  if not @settings.crop or not @settings.multiple
        return

      for crop in @settings.crop
        # if even one of crop option sets allow free crop,
        # we don't need to crop automatically
        if not crop.preferedSize
          return

@nd0ut nd0ut requested a review from bautrukevich March 18, 2019 12:38
@nd0ut nd0ut merged commit a33fa0a into master Mar 19, 2019
@nd0ut nd0ut deleted the fix-auto-crop branch March 27, 2019 10:32
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.

2 participants