Set a maximum width for a child Rectangle
-
2 Rectangles, child and parent.
The child rectangle dynamically changes its width when typing text ( I am using a TextEdit) while the parent rectangle has a constant width value. The issue is when I'm writing a long sentence in TextEdit area, the width of child rectangle exceeds the border of the parent rectangle. I used the wrapMode but it didn't fix itIs there any way to set a maximum width for the child so it can stay inside the parent rectangle ?
-
2 Rectangles, child and parent.
The child rectangle dynamically changes its width when typing text ( I am using a TextEdit) while the parent rectangle has a constant width value. The issue is when I'm writing a long sentence in TextEdit area, the width of child rectangle exceeds the border of the parent rectangle. I used the wrapMode but it didn't fix itIs there any way to set a maximum width for the child so it can stay inside the parent rectangle ?
-