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 with restrictRect and resizable #946

Open
tups opened this issue Dec 22, 2021 · 4 comments
Open

Bug with restrictRect and resizable #946

tups opened this issue Dec 22, 2021 · 4 comments
Projects

Comments

@tups
Copy link
Contributor

tups commented Dec 22, 2021

Expected behavior

Be able to resize the element without it going beyond the parent

Actual behavior

If the child element is as large as the parent, we can no longer resize it, and some other cases depending on its position

Here is the example on CodePen : https://codepen.io/tups/pen/vYeeOav

System configuration

interact.js version: 1.10.11
Browser name and version: All
Operating System: All

@tups
Copy link
Contributor Author

tups commented Dec 22, 2021

I just set up a PR: #947

@stale

This comment was marked as outdated.

@stale stale bot added the stale label Mar 2, 2022
@tups
Copy link
Contributor Author

tups commented Mar 2, 2022

Thanks Stale, but not close this issue

@stale stale bot removed the stale label Mar 2, 2022
@taye taye added this to Unscheduled in Roadmap via automation Apr 7, 2022
@fritzmg
Copy link

fritzmg commented Sep 1, 2022

I noticed the same. Basically when using restrictRect you can only, for example, resize the right edge towards the left as much as the distance of the left edge towards the left of the restricting rectangle. Meaning you cannot move the right edge at all anymore, if the left edge already touches the left boundary of the restricting rectangle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Roadmap
  
Unscheduled
Development

No branches or pull requests

2 participants