summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-03-01 02:46:45 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-03-01 02:46:45 (GMT)
commitc50c17c285de4ad33f4a965244fd248934117533 (patch)
tree5c8d84979e68f36f44acc2158b70fe584d06d7d6 /demos/declarative/flickr
parent67bb989e11cf47431e419966bff7257c028ea958 (diff)
downloadQt-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.qml4
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.