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

Relative sizing?

Is there a way to size components more relatively? For example, let;'s say I make a thumbnail that is 300x200. It has images and text elements, etc. Let's say I use that component on a different part of the page, but I tell it to instead be 350x200. It would be nice to make the children nodes on the component to use relative sizing and positioning to make it easy to change the overall component size. For example, being able to use 100% width/height would be awesome, rather than telling all the sub child nodes to be the same size.
0 Kudos
1 REPLY 1
RokuNB
Roku Guru

Re: Relative sizing?

That's how RSG works already. See the `scale` property, it applies to the UI component and its attached/children.
https://sdkdocs.roku.com/display/sdkdoc/Group
0 Kudos