Bounds not working with resize
Environments
- Framework name: React
- Framework version: 18.2.0
- Moveable Component version: 0.42.1
- Testable Address(optional): https://codesandbox.io/s/determined-stonebraker-deu33h?file=/src/App.js
Description
When resizing the text, the element flickers and jumps from place to place when it hits a bound. I've included a codesanbox. Is there something I can do to stop this? This seems to be related to rotation as it doesn't happen if the element is not rotated.
Adding a height seems to 'fix' this however I'm not sure why and also it then breaks the transformer as the text then overflows the transformer.
https://user-images.githubusercontent.com/49490721/211000654-3c0d2ab0-7f76-4634-a80a-dbe5282e7dc4.mov
I also experience something similar locally where the resize snaps suddenly and gets stuck there:
https://user-images.githubusercontent.com/49490721/211001068-d455517a-a104-4b42-a52c-4825509154d4.mov
@kolomiytsevs
sorry. It is still difficult to implement when the height automatically changes in relation to text.