jaxim
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2018
08:56 AM
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.
1 REPLY 1
NB_
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2018
12:53 PM
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
https://sdkdocs.roku.com/display/sdkdoc/Group