Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
abdcool17
Level 7

Manage alignment of childs of LayoutGroup

Hello spartans,

I've a requirement where I want different horizAlignment property for the childs of same LayoutGroup.
Eg. First child is keyboard which should be centre aligned and second one is text field which should be left alligned.

I've tried applying the translation, disabling inheritParentTransform, etc.

Any help is much appreciated. Thanks in advance Smiley Happy

0 Kudos
1 REPLY 1\
RokuJonathanD
Roku Employee
Roku Employee

Re: Manage alignment of childs of LayoutGroup

Hi @abdcool17,

You can use a Group container and explicitly set the translations of the child items, based on the localBoundingRect() values return for the child nodes.

0 Kudos