diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-03-01 05:34:59 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-03-01 05:34:59 (GMT) |
commit | 1c9908d6d31326dbeed9d23b4f3ac3c8446d91b5 (patch) | |
tree | 3b53837336852963ce69a5f110595c3377776882 /demos/declarative/flickr/mobile/ImageDetails.qml | |
parent | 7fed799b0ac8c472c99d28943ab9d8aae78a9836 (diff) | |
download | Qt-1c9908d6d31326dbeed9d23b4f3ac3c8446d91b5.zip Qt-1c9908d6d31326dbeed9d23b4f3ac3c8446d91b5.tar.gz Qt-1c9908d6d31326dbeed9d23b4f3ac3c8446d91b5.tar.bz2 |
Fix position of image in detail view in flickr-mobile
Diffstat (limited to 'demos/declarative/flickr/mobile/ImageDetails.qml')
-rw-r--r-- | demos/declarative/flickr/mobile/ImageDetails.qml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/demos/declarative/flickr/mobile/ImageDetails.qml b/demos/declarative/flickr/mobile/ImageDetails.qml index 8749b4c..c51371c 100644 --- a/demos/declarative/flickr/mobile/ImageDetails.qml +++ b/demos/declarative/flickr/mobile/ImageDetails.qml @@ -66,10 +66,7 @@ Flipable { Image { id: bigImage; source: container.photoUrl; scale: slider.value - // Center image if it is smaller than the flickable area. - x: imageContainer.width > width*scale ? (imageContainer.width - width*scale) / 2 : 0 - y: imageContainer.height > height*scale ? (imageContainer.height - height*scale) / 2 : 0 - smooth: !flickable.moving + anchors.centerIn: parent; smooth: !flickable.moving onStatusChanged : { // Default scale shows the entire image. if (status == 1 && width != 0) { |