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: 
nmaves
Visitor

Right align items in a LayoutGroup

I can't seem to figure out this basic concept.  In the example below the Text can vary in width but the PosterImage is only 40px wide.

---------------------------------------------------------------------------------------
                                                                                           PosterImage | Text
---------------------------------------------------------------------------------------
0 Kudos
1 REPLY 1
joetesta
Roku Guru

Re: Right align items in a LayoutGroup

Do not assign a width to your text label and then calculate your poster's translation dynamically based on the boundingRect().width of your text.
aspiring
0 Kudos