Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nmaves
Visitor

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?
Tags (1)
0 Kudos
5 REPLIES 5
joetesta
Roku Guru

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
Tags (1)
0 Kudos
nmaves
Visitor

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.
Tags (1)
0 Kudos
joetesta
Roku Guru

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
Tags (1)
0 Kudos
joetesta
Roku Guru

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
Tags (1)
0 Kudos
nmaves
Visitor

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.
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!