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

auto resize when lockAspectRatio value changes #785

Open
narasimhajupally opened this issue May 25, 2023 · 0 comments
Open

auto resize when lockAspectRatio value changes #785

narasimhajupally opened this issue May 25, 2023 · 0 comments

Comments

@narasimhajupally
Copy link

Overview of the problem

when the lockAspectRatio prop is passed the element does resize itself accordingly but as we try to resize even slightly the element resizes itself to the correct aspect ratio. can't we trigger the same logic when lockAspectRatio prop changes ?

My browser is: chrome

I am sure this issue is not a duplicate.

Description

Steps to Reproduce

  1. pass lockAspectRatio prop with correct initial width and height
  2. programmatically change the prop value

Expected behavior

resizable to automatically adjust according to ratio and boundaries

Actual behavior

resizable does not adjust until a resize handle is moved with mouse

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