summaryrefslogtreecommitdiffstats
path: root/examples/declarative/aspectratio/face_fit_animated.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/aspectratio/face_fit_animated.qml')
-rw-r--r--examples/declarative/aspectratio/face_fit_animated.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/aspectratio/face_fit_animated.qml b/examples/declarative/aspectratio/face_fit_animated.qml
index 2768150..7db1c80 100644
--- a/examples/declarative/aspectratio/face_fit_animated.qml
+++ b/examples/declarative/aspectratio/face_fit_animated.qml
@@ -16,7 +16,7 @@ Rectangle {
source: "pics/face.png"
x: (parent.width-width*scale)/2
y: (parent.height-height*scale)/2
- scale: Follow {
+ scale: SpringFollow {
source: Math.max(Math.min(Image.parent.width/Image.width*1.333,Image.parent.height/Image.height),
Math.min(Image.parent.width/Image.width,Image.parent.height/Image.height*1.333))
spring: 1