re-resizable icon indicating copy to clipboard operation
re-resizable copied to clipboard

auto resize when lockAspectRatio value changes

Open narasimhajupally opened this issue 1 year ago • 0 comments

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

narasimhajupally avatar May 25 '23 18:05 narasimhajupally