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

Added checkbox for keeping the aspect ratio when resizing an uploaded image #1

Closed
wants to merge 1 commit into from

Conversation

quacklemtduck
Copy link
Contributor

Added checkbox for keeping the aspect ratio when resizing an uploaded image

Whenever the image popup handles changes, it checks if the checkbox for keeping the aspect ratio has been checked.
If it has been checked, it checks if there has been a change en the width or height, and then calculates what the other attribute should be to keep the aspect ratio,

Also changed the width of the upload-popup so that it doesn't wrap the canvas because of the width of the label.

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.

None yet

1 participant