on xenial help sign in
More fixes
commitd3cf8f2bc204d5ae8f6b4a58791870dd52edd72c authorAndrea Cimitan <andrea.cimitan@gmail.com> dateThu 5 Mar 2015, 17:07 (12 years ago) parent714f640
2 files changed+3−3
qml/Dash/Previews/PreviewOverlay.qml+2−2 tests/qmltests/Dash/Previews/tst_PreviewImageGallery.qml+1−1
qml/Dash/Previews/PreviewOverlay.qml+2−2
@@ -99,8 +99,8 @@ Rectangle {
9999 id: loader
100100 anchors.fill: parent
101101
102− readonly property real initialXScale: initialAspectRatio >= 1 ? 1 : aspectRatio / initialAspectRatio
103− readonly property real initialYScale: initialAspectRatio >= 1 ? initialAspectRatio / aspectRatio : 1
102+ readonly property real initialXScale: initialAspectRatio / aspectRatio >= 1 ? 1 : aspectRatio / initialAspectRatio
103+ readonly property real initialYScale: initialAspectRatio / aspectRatio >= 1 ? initialAspectRatio / aspectRatio : 1
104104 readonly property real xScale: loader.initialXScale - loader.initialXScale * overlay.progress + overlay.progress
105105 readonly property real yScale: loader.initialYScale - loader.initialYScale * overlay.progress + overlay.progress
106106
tests/qmltests/Dash/Previews/tst_PreviewImageGallery.qml+1−1
@@ -22,7 +22,7 @@ import Unity.Test 0.1 as UT
2222Rectangle {
2323 id: root
2424 width: units.gu(80)
25− height: units.gu(80)
25+ height: units.gu(70)
2626 color: "lightgrey"
2727
2828 property var sourcesModel0: {