@@ -20,7 +20,6 @@ import "Animations"
21 id: container
21 id: container
22 property Item surface: null
22 property Item surface: null
23− readonly property alias surfaceArea: _surfaceArea
24 property bool removing: false
23 property bool removing: false
26 onSurfaceChanged: {
25 onSurfaceChanged: {
@@ -31,12 +30,6 @@ Item {
37− color: Qt.rgba(0,0,0,0)
40 Connections {
33 Connections {
41 target: surface
34 target: surface
42 onRemoved: {
35 onRemoved: {
@@ -63,7 +56,13 @@ Item {
64 delegate: Loader {
57 delegate: Loader {
66− anchors.fill: surfaceArea
59+ anchors {
61+ topMargin: container.surface.anchors.topMargin
62+ rightMargin: container.surface.anchors.rightMargin
63+ bottomMargin: container.surface.anchors.bottomMargin
64+ leftMargin: container.surface.anchors.leftMargin
68 // Only way to do recursive qml items.
67 // Only way to do recursive qml items.
69 source: Qt.resolvedUrl("SurfaceContainer.qml")
68 source: Qt.resolvedUrl("SurfaceContainer.qml")
@@ -76,7 +75,7 @@ Item {
78 function animateIn(component) {
77 function animateIn(component) {
79− var animation = component.createObject(container, { "surface": container.surface, "surfaceArea": container.surfaceArea });
78+ var animation = component.createObject(container, { "surface": container.surface, "surfaceArea": container });
80 animation.start();
79 animation.start();
82 var tmp = d.animations;
81 var tmp = d.animations;
@@ -117,7 +116,7 @@ Item {
117 states: [
116 states: [
119 name: "initial"
118 name: "initial"
120− PropertyChanges { target: surface; anchors.fill: surfaceArea }
119+ PropertyChanges { target: surface; anchors.fill: container }
122 // TODO: more animations!
121 // TODO: more animations!