Skip to content

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

@dqrjz

Description

@dqrjz

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.

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