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: 
jaxim
Level 7

Auto Size Label?

What is the best way to ensure the label or any other text based component is resized to match the width and height of the text? This would be helpful so the textfields that display dynamic text and you wish to display different elements below or to the right immediately after the text - NOT the textfield.
0 Kudos
1 Reply
joetesta
Level 10

Re: Auto Size Label?

leave height and width unset and use boudingRect() to find the dynamically set values
aspiring
0 Kudos