moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Bounds not working with resize

Open kolomiytsevs opened this issue 3 years ago • 1 comments

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 avatar Jan 06 '23 11:01 kolomiytsevs

@kolomiytsevs

sorry. It is still difficult to implement when the height automatically changes in relation to text.

daybrush avatar Jan 27 '23 19:01 daybrush