diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-03-01 02:46:45 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-03-01 02:46:45 (GMT) |
commit | c50c17c285de4ad33f4a965244fd248934117533 (patch) | |
tree | 5c8d84979e68f36f44acc2158b70fe584d06d7d6 /demos/declarative/flickr | |
parent | 67bb989e11cf47431e419966bff7257c028ea958 (diff) | |
download | Qt-c50c17c285de4ad33f4a965244fd248934117533.zip Qt-c50c17c285de4ad33f4a965244fd248934117533.tar.gz Qt-c50c17c285de4ad33f4a965244fd248934117533.tar.bz2 |
Fix position of image in detail view.
Diffstat (limited to 'demos/declarative/flickr')
-rw-r--r-- | demos/declarative/flickr/common/ImageDetails.qml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/demos/declarative/flickr/common/ImageDetails.qml b/demos/declarative/flickr/common/ImageDetails.qml index f91b365..9604f10 100644 --- a/demos/declarative/flickr/common/ImageDetails.qml +++ b/demos/declarative/flickr/common/ImageDetails.qml @@ -93,9 +93,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 + anchors.centerIn: parent; smooth: !flick.moving onStatusChanged : { // Default scale shows the entire image. |