summaryrefslogtreecommitdiffstats
path: root/basicsuite
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2013-04-25 10:56:17 +0200
committerGunnar Sletta <gunnar.sletta@digia.com>2013-04-25 12:01:00 +0300
commitee92918ac7fbf71fcf234356f137232fe3174829 (patch)
treea395fbb0e86cf72b5f3b39a983f0d3041c13f219 /basicsuite
parentab7d642fc3e7757d6ba993b599716a27422e9f9b (diff)
images and tweaks to photo gallery
Change-Id: I23b63f0e031d41d8bb7980307f1d2443cfebbbe8 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'basicsuite')
-rw-r--r--basicsuite/Photo Gallery/main.qml6
1 files changed, 1 insertions, 5 deletions
diff --git a/basicsuite/Photo Gallery/main.qml b/basicsuite/Photo Gallery/main.qml
index d3bedba..fa0e577 100644
--- a/basicsuite/Photo Gallery/main.qml
+++ b/basicsuite/Photo Gallery/main.qml
@@ -201,11 +201,10 @@ Item {
var targetScale;
// Rotation needed...
- if (imageIsLandscape != screenIsLandscape) {
+ if (imageIsLandscape != screenIsLandscape && width != height) {
root.targetRotation = 90;
var aspect = width / height
var screenAspect = root.height / root.width
- print("Aspect ratios in portrait: ", aspect, screenAspect);
if (aspect > screenAspect) {
targetScale = root.height / width
@@ -216,7 +215,6 @@ Item {
root.targetRotation = 0;
var aspect = height / width;
var screenAspect = root.height / root.width
- print("Aspect ratios in portrait: ", aspect, screenAspect);
if (aspect > screenAspect) {
targetScale = root.height / height
@@ -231,8 +229,6 @@ Item {
width = root.size
height = root.size;
- print("BigImage size: ", width, height, targetWidth, targetHeight);
-
finalizeEnterLargeAnimation.running = true;
}
}