@@ -29,6 +29,7 @@ Item {
30 property real initialWidth: scaleTo == "width" || scaleTo == "fit" ? width : units.gu(10)
30 property real initialWidth: scaleTo == "width" || scaleTo == "fit" ? width : units.gu(10)
31 property real initialHeight: scaleTo == "height" || scaleTo == "fit" ? height : units.gu(10)
31 property real initialHeight: scaleTo == "height" || scaleTo == "fit" ? height : units.gu(10)
32+ property real lastScaledDimension: scaleTo == "height" || scaleTo == "fit" ? width : height
33 property alias sourceSize: image.sourceSize
34 property alias sourceSize: image.sourceSize
34 property alias fillMode: image.fillMode
35 property alias fillMode: image.fillMode
@@ -157,6 +158,7 @@ Item {
157 easing.type: Easing.Linear; duration: UbuntuAnimation.SnapDuration
158 easing.type: Easing.Linear; duration: UbuntuAnimation.SnapDuration
161+ ScriptAction { script: { lastScaledDimension = scaleTo == "height" || scaleTo == "fit" ? root.width : root.height } }