scale causes position issue (controlled)
See original GitHub issueOverview of the problem
I’m using react-rnd version [10.0.0]
My browser is: Chrome
I am sure this issue is not a duplicate?
YES.
Reproduced project
https://codesandbox.io/s/wonderful-sara-ntpno
Description
When changing the scale the position of the Rnd elements is incorrect. (a simple zoom-in, then zoom-out demonstrates this very nicely)
Steps to Reproduce
- Use
sizeandpositionproperties - set scale (make it changeable)
- When scale up changes to scale down the issue is visible.
Expected behavior
Scale should not affect the position. The position should always remain relative to its wrapper
Actual behavior
The element jumps (jumps increase with increasing x | y positions)

Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:7
Top Results From Across the Web
Issue with CSS scale + position absolute - Stack Overflow
In order to fix this I added a position: absolute; on the wrapper div , which caused the title to be visible, but...
Read more >Expression added to scale transform also affects p... - 12428279
I'm using a control layer (gradient ramp) to attempt to adjust the scale of another layer but I am baffled why my expression...
Read more >scaling animation causes object end position to be inaccurate ...
Hi, This is my experience and issues - it is somewhat long, ... scaling animation causes object end position to be inaccurate [causes/fixes]....
Read more >scale() - CSS: Cascading Style Sheets - MDN Web Docs
This scaling transformation is characterized by a two-dimensional vector. Its coordinates define how much scaling is done in each direction. If ...
Read more >Position Classification Standard for Telecommunications ...
equipment, automated control and network management systems, ... developments to communications problems not susceptible to treatment by accepted methods,.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

that doesn’t work.
Solved with the built-in prop:
scaleexample: https://codesandbox.io/s/vmo9ypvwl7