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

When using a scale and html element boundary the scale is not applied to the bounds. #820

Closed
cor1 opened this issue May 24, 2024 · 5 comments · Fixed by #821
Closed

When using a scale and html element boundary the scale is not applied to the bounds. #820

cor1 opened this issue May 24, 2024 · 5 comments · Fixed by #821

Comments

@cor1
Copy link
Contributor

cor1 commented May 24, 2024

Bug

Overview of the problem

When using a scale and html element boundary the scale is not applied to the bounds.

I'm using re-resizable version 6.9.16

My browser is: Chrome

I am sure this issue is not a duplicate? Yes

Description

Steps to Reproduce

  1. Apply a transform scale on the element that is the boundary
  2. resize and the sizing boundary is off.

Expected behavior

Even with a scale on the parent, the boundary should stay the same and follow what the user sees.

Actual behavior

The resize stops (hits the boundary) in an unexpected place.

@bokuweb
Copy link
Owner

bokuweb commented May 26, 2024

@cor1 Thanks for your work. Could you please provide a codesandbox project to reproduce this issue?

@cor1
Copy link
Contributor Author

cor1 commented May 28, 2024

@bokuweb Apologize for the delay, here is a codesandbox showing boundaries being off when scaling is applied
https://codesandbox.io/p/sandbox/hardcore-meitner-t4nhsw?file=%2Fsrc%2Findex.js
to see the issue, resize the window so the red area scales down.

@bokuweb
Copy link
Owner

bokuweb commented Jun 12, 2024

@cor1 Sorry for late. Thanks for your work :) I'll check.

@cor1
Copy link
Contributor Author

cor1 commented Jun 12, 2024

@bokuweb no worries, thanks so much!

@cor1
Copy link
Contributor Author

cor1 commented Jul 1, 2024

hey @bokuweb any update?

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 a pull request may close this issue.

2 participants