@@ -99,16 +99,15 @@ FocusScope {
9999 },
100100 State {
101101 name: "normalSuspended"; when: root.scaleToPreviewProgress <= 0 && root.application.state !== ApplicationInfoInterface.Running
102+ extend: "normal"
102103 PropertyChanges {
103104 target: root
104105 implicitWidth: counterRotate ? applicationWindow.requestedHeight : applicationWindow.requestedWidth
105106 implicitHeight: root.decorationHeight + (counterRotate ? applicationWindow.requestedWidth: applicationWindow.requestedHeight)
106107 }
107−// PropertyChanges { target: applicationWindow; anchors.topMargin: (root.height - applicationWindow.implicitHeight) / 2 }
108−// PropertyChanges { target: dropShadow; anchors.topMargin: (root.height - applicationWindow.implicitHeight) / 2 }
109108 },
110109 State {
111− name: "preview"; when: root.scaleToPreviewProgress > 0 && root.application.state === ApplicationInfoInterface.Running
110+ name: "preview"; when: root.scaleToPreviewProgress > 0
112111 PropertyChanges {
113112 target: root
114113 implicitWidth: MathUtils.linearAnimation(0, 1, applicationWindow.oldRequestedWidth, root.scaleToPreviewSize, root.scaleToPreviewProgress)
@@ -122,16 +121,6 @@ FocusScope {
122121 height: MathUtils.linearAnimation(0, 1, applicationWindow.oldRequestedHeight, applicationWindow.minSize, root.scaleToPreviewProgress)
123122 itemScale: root.implicitWidth / width
124123 }
125− },
126− State {
127− name: "previewSuspended"; when: root.scaleToPreviewProgress > 0 && root.application.state !== ApplicationInfoInterface.Running
128− extend: "preview"
129− PropertyChanges { target: applicationWindow;
130− anchors.verticalCenterOffset: applicationWindow.implicitHeight < applicationWindow.height ?
131− (root.height / applicationWindow.itemScale - applicationWindow.implicitHeight) / 2
132− : (root.height / applicationWindow.itemScale - applicationWindow.height) / 2
133− }
134−// PropertyChanges { target: dropShadow; anchors.topMargin: (root.height - root.implicitHeight) / 2 * (1 - root.scaleToPreviewProgress) }
135124 }
136125 ]
137126 }
@@ -195,9 +184,9 @@ FocusScope {
195184 ApplicationWindow {
196185 id: applicationWindow
197186 objectName: "appWindow"
198− anchors.verticalCenter: parent.verticalCenter
199− anchors.verticalCenterOffset: (root.decorationHeight * Math.min(1, root.showDecoration)) / 2
200187 anchors.left: parent.left
188+ anchors.top: parent.top
189+ anchors.topMargin: root.decorationHeight * Math.min(1, root.showDecoration)
201190 width: implicitWidth
202191 height: implicitHeight
203192 requestedHeight: !counterRotate ? root.requestedHeight - d.requestedDecorationHeight : root.requestedWidth
@@ -232,7 +221,6 @@ FocusScope {
232221 angle: rotationAngle
233222 },
234223 Scale {
235− origin.y: (applicationWindow.implicitHeight < applicationWindow.height ? applicationWindow.implicitHeight : applicationWindow.height) / 2
236224 xScale: applicationWindow.itemScale
237225 yScale: applicationWindow.itemScale
238226 }