@@ -95,7 +95,7 @@ FocusScope {
9595
9696 BorderImage {
9797 anchors {
98− fill: decoratedWindow
98+ fill: root
9999 margins: active ? -units.gu(2) : -units.gu(1.5)
100100 }
101101 source: "graphics/dropshadow2gu.sci"
@@ -153,8 +153,7 @@ FocusScope {
153153 implicitHeight: MathUtils.linearAnimation(0, 1, applicationWindow.oldRequestedHeight, root.scaleToPreviewSize, root.scaleToPreviewProgress)
154154 width: MathUtils.linearAnimation(0, 1, applicationWindow.oldRequestedWidth, applicationWindow.minSize, root.scaleToPreviewProgress)
155155 height: MathUtils.linearAnimation(0, 1, applicationWindow.oldRequestedHeight, applicationWindow.minSize, root.scaleToPreviewProgress)
156− // This is not 100% matching as it animates to an animated height, but close enough for the speed the animation plays
157− itemScale: MathUtils.linearAnimation(0, 1, 1, 1.0 * root.scaleToPreviewSize / Math.min(applicationWindow.height, applicationWindow.width), root.scaleToPreviewProgress)
156+ itemScale: implicitWidth / width
158157 }
159158 }
160159 ]