You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a behavioral change. Not sure if another new option should be added, or just change the behavior.
When lockAspectRatio is true and corner is dragged, currently, the new height is kept while width is computed based on the aspect ratio. It makes more sense to compute height based on width, because usually the width is constrained (by window width) and height is infinite when overflow the screen.
Overview of the problem
This is a behavioral change. Not sure if another new option should be added, or just change the behavior.
When
lockAspectRatio
istrue
and corner is dragged, currently, the new height is kept while width is computed based on the aspect ratio. It makes more sense to compute height based on width, because usually the width is constrained (by window width) and height is infinite when overflow the screen.The code is here:
re-resizable/src/index.tsx
Lines 582 to 616 in 0f6b2dd
Execute top/bottom if first, then right/left if will change the behavior.
The text was updated successfully, but these errors were encountered: