Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 8

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 1\
Level 11

Re: Auto Size Label?

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