moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Boundings error with text break line on words and characters

Open ghost opened this issue 3 years ago • 1 comments

Environments

  • Framework name: react
  • Framework version: 17.0.2
  • Moveable Component version: 0.29.0
  • Testable Address(optional):

Description

Hi, im trying to make a text box with moveable and resizeable enabled. I want words and characters to break lines when the box is smaller than the words or characters to fit. Because of that, I added word-break: normal and overflow-wrap: break-word CSS properties to the text. The behaviour I want is happening but the moveable bounding box is smaller and apparently does not know where the text is to draw the correct bounding box, event after calling updateRect.

Am I missing something? Is there anyway the moveable bounding is calculated from the very top div of the moveable target?

Thanks

ghost avatar Aug 28 '21 23:08 ghost

@sfausto

Resizable related to text is still a big problem and has not been solved. I will try to solve it.

daybrush avatar Oct 31 '21 17:10 daybrush