I’m facing the problem when drawing a FloatingBox that contains a TextFragment, the wrapping of the text is taking place outside of the box. How can I achieve the text to wrap when it reaches the width of the FloatingBox?
I’ve attached an image what it currently looks like.
Edit: I’ve seen the width property of the Rectangle of the TextFragment, but it only has a ‘get’. Is there a way to constrain the width of this Rectangle according to the width of the FloatingBox?
text_wrap_gone_wrong.png (16.7 KB)
Best regards and thanks,