Your Digital Media Has Never Looked So Good

 
jaxim
Topic Author
Posts: 66
Joined: Mon Sep 26, 2016 6:25 am

Relative sizing?

Mon Dec 10, 2018 9:56 am

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.
 
User avatar
RokuNB
Posts: 456
Joined: Fri Mar 31, 2017 2:22 pm

Re: Relative sizing?

Sat Dec 15, 2018 1:53 pm

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

Who is online

Users browsing this forum: No registered users and 3 guests