Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jaxim
Visitor

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
joetesta
Roku Guru

Re: Auto Size Label?

leave height and width unset and use boudingRect() to find the dynamically set values
aspiring
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.