Roku Developer Program

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

Z-index (rendering order) TargetGroup

I am trying to enlarge an item in the target group but it is scaling behind the next item in the TargetGroup.  How can I control this?
0 Kudos
5 Replies
joetesta
Level 10

Re: Z-index (rendering order) TargetGroup

Can you just switch the order of the elements in your group?  The last child element will appear on top of previous elements.
aspiring
0 Kudos
nmaves
Level 7

Re: Z-index (rendering order) TargetGroup

I don't think you understand how the TargetList/TargetGroup work.  I can't change the order of the content. Each item can get updated as they come into focus which is where I scale the item/group.  I think the issue is that each of the items in the TargetGroup is rendered in order which means that the focused item is rendered and scaled larger.  Then the next item in the TargetGroup is rendered on top of the focused item.
0 Kudos
joetesta
Level 10

Re: Z-index (rendering order) TargetGroup

I guess I don't.  You've just described exactly how z-index rendering works.  later elements are rendered on top of earlier ones.  Good luck.
aspiring
0 Kudos
joetesta
Level 10

Re: Z-index (rendering order) TargetGroup

Maybe you can do a hack like render a copy of the focused rect after rendering the targetlist. but what do i know.
aspiring
0 Kudos
nmaves
Level 7

Re: Z-index (rendering order) TargetGroup

Yeah I thought about that but I decided to go with an approach where the items will not overlap when scaled up.
0 Kudos