moveable
moveable copied to clipboard
Boundings error with text break line on words and characters
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
@sfausto
Resizable related to text is still a big problem and has not been solved. I will try to solve it.