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

[BUG] updateSize not ignoring max/minWidth, max/minHeight #775

Open
dqrjz opened this issue Jul 31, 2022 · 0 comments
Open

[BUG] updateSize not ignoring max/minWidth, max/minHeight #775

dqrjz opened this issue Jul 31, 2022 · 0 comments

Comments

@dqrjz
Copy link

dqrjz commented Jul 31, 2022

Overview of the problem

I'm using re-resizable version [6.9.9]

My browser is: Chrome

I am sure this issue is not a duplicate.

Description

It says in the documentation about the updateSize method that:

grid, snap, max/minWidth, max/minHeight props is ignored, when this method called.

However, i'm not able to update to a larger size than the max values, or a smaller size than the min values.

Steps to Reproduce

See codesandbox below:
https://codesandbox.io/s/cool-butterfly-d3z2rr

Expected behavior

updateSize should ignore max/minWidth, max/minHeight.

Actual behavior

height and width are still limited by max/minWidth, max/minHeight when calling updateSize.

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