joetesta
8 years agoRoku Guru
Point at which label isTextEllipsized
Hello -
I have a paragraph of text displayed as a Label Component and we want to put a "more" button at the end of the text on the 4th line. The more button should appear within the rectangle that contains the paragraph, and the ellipsis should appear before (to the left of) the more button.
There's no simple way to do this with Label Component but if I can tell at what point the text "isTextEllipsized" then I can modify the original text to display as needed.
The brute says increment over every letter in the paragraph to see at what point isTextEllipsized first becomes true. But hopefully there's a better way?
Any ideas or suggestions?
tyvmia
I have a paragraph of text displayed as a Label Component and we want to put a "more" button at the end of the text on the 4th line. The more button should appear within the rectangle that contains the paragraph, and the ellipsis should appear before (to the left of) the more button.
There's no simple way to do this with Label Component but if I can tell at what point the text "isTextEllipsized" then I can modify the original text to display as needed.
The brute says increment over every letter in the paragraph to see at what point isTextEllipsized first becomes true. But hopefully there's a better way?
Any ideas or suggestions?
tyvmia