Skip to content

Bug with restrictRect and resizable#947

Open
tups wants to merge 1 commit intotaye:mainfrom
tups:fix_restrictRect_resize
Open

Bug with restrictRect and resizable#947
tups wants to merge 1 commit intotaye:mainfrom
tups:fix_restrictRect_resize

Conversation

@tups
Copy link
Contributor

@tups tups commented Dec 22, 2021

Fix issue : #946

@taye
Copy link
Owner

taye commented Apr 7, 2022

Thanks for the PR. Can you add a test case for this fix?

@tups
Copy link
Contributor Author

tups commented Apr 8, 2022

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 an example configuration that does not work without PR. Just try to resize the image
CodePen : https://codepen.io/tups/pen/vYeeOav

@tups tups force-pushed the fix_restrictRect_resize branch from d6a7c64 to a4df0d9 Compare April 8, 2022 17:19
@andreasvirkus
Copy link

@tups by "test case" he meant a spec file, something like https://github.com/taye/interact.js/blob/main/packages/%40interactjs/offset/offset.spec.ts

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

Successfully merging this pull request may close these issues.

3 participants