What steps will reproduce the problem?
1. create two CanvasNodes with zIndexes 1 and 2
2. on the node with zIndex 1, add ElementNode A with zIndex 3
3. on the node with zIndex 2, add ElementNode B with zIndex 2
4. move the ElementNodes so that they overlap
What is the expected output? What do you see instead?
Expected that B is above A, instead A is above B.
This happens because the ElementNodes are on a single div above the canvas
and their zIndexes are relative to other ElementNodes, not the scene.
Fix: either a more robust zIndex numbering (e.g. assign a running zIndex to
ElementNode#element on every frame) or recreate the canvas structure with
divs so that the elementNodes behave. Leaning towards the dynamic zIndices.
Original issue reported on code.google.com by Ilmari.H...@gmail.com on 21 Mar 2008 at 8:38
Original issue reported on code.google.com by
Ilmari.H...@gmail.com
on 21 Mar 2008 at 8:38