Skip to content

auto resize when lockAspectRatio value changes #785

@narasimhajupally

Description

@narasimhajupally

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions