You are not logged in.

KiboOst

Trainee

  • "KiboOst" started this thread

Posts: 83

Location: France

Occupation: TD

  • Send private message

1

Friday, March 25th 2016, 10:51am

z-order and parenting

Hi,

Dunno if it is a feature or a bug, but something weird happens here (1.19pr3, html5)

layer container1 zorder=1
layer container2 zorder=5
layer button zorder=10 parent=container1

So, container2 is on top of container1, and my button, parented to container1 should be on top of both containers. It isn't ! container2 is on top of my button and my button doesn't capture mouse.

if I parent my button to container2 it works, but placement and some actions need button parented to container1

Is this a normal behavior ? Shouldn't all z-order be treated globally, independently of their parenting ?

Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Friday, March 25th 2016, 1:17pm

Hi)

"Parent" means that your button is located INSIDE container1. And in that case it can't be above container2, because container1 is located under container2.
Regards,

Alexey

KiboOst

Trainee

  • "KiboOst" started this thread

Posts: 83

Location: France

Occupation: TD

  • Send private message

3

Friday, March 25th 2016, 2:32pm

Yes this is what I concluded experimenting it.
But wouldn't be possible to put z-order globally ? In html, you can mix divs and img z-index ...