nmaves
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2018
07:00 PM
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
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
PosterImage | Text
---------------------------------------------------------------------------------------
1 REPLY 1
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2018
10:44 AM
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