restore proper depth and z calculation
This commit is contained in:
parent
785ffaa0fb
commit
3f0e47110d
@ -228,12 +228,17 @@ Item {
|
|||||||
|
|
||||||
width: columnWidth + 100
|
width: columnWidth + 100
|
||||||
height: parent ? parent.height : 0
|
height: parent ? parent.height : 0
|
||||||
|
|
||||||
x: 0
|
x: 0
|
||||||
|
|
||||||
// The actual parent of page: page will anchor to that
|
// The actual parent of page: page will anchor to that
|
||||||
property Item pageParent: actualContainer
|
property Item pageParent: actualContainer
|
||||||
|
|
||||||
property int pageDepth: 0
|
property int pageDepth: 0
|
||||||
|
Component.onCompleted: {
|
||||||
|
pageDepth = Engine.getDepth() + 1
|
||||||
|
container.z = -Engine.getDepth()
|
||||||
|
}
|
||||||
|
|
||||||
// The states correspond to the different possible positions of the container.
|
// The states correspond to the different possible positions of the container.
|
||||||
state: "Hidden"
|
state: "Hidden"
|
||||||
|
Loading…
Reference in New Issue
Block a user