Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
jedashford
Level 7

Label.isTextEllipsized always returns false

I found a buried roku forum message from 8 months ago where others complained isTextEllipsized always returns false: viewtopic.php?f=34&t=88621&p=520504&hilit=isTextEllipsized#p520504

I'm also experiencing this with firmware 7.1 . Anyone know if there is a work around or if Roku is working on fixing it?

I need to add an indicator to view 'more' of a description only if its more than a certain amount of lines. This looks to be the only way to find this.

'always returns FALSE
m.top.findNode("description").isTextEllipsized
0 Kudos
2 Replies
jedashford
Level 7

Re: Label.isTextEllipsized always returns false

Thought this was fixed in Firmware 7.2, but appears it is not. Anyone else think of a way to tell if a block of text is truncated? Really makes for a poor UI experience without this.
0 Kudos
Techie
Level 7

Re: Label.isTextEllipsized always returns false

isTextEllipsized is set once the text is loaded. Correct way is to observe this field. Once it will be set callback will be triggered and there you can update your UI
0 Kudos