on xenial help sign in
Use PreserveAspectCrop
commita643326232e034460a45bd7eeeffb3187ed4e895 authorAndrea Cimitan <andrea.cimitan@canonical.com> dateTue 16 Jul 2013, 11:28 (13 years ago) parent9f00b43
2 files changed+3
Components/CrossFadeImage.qml+2 Shell.qml+1
Components/CrossFadeImage.qml+2
@@ -96,6 +96,7 @@ Item {
9696 anchors.fill: parent
9797 cache: false
9898 asynchronous: true
99+ fillMode: Image.PreserveAspectCrop
99100 z: 1
100101 }
101102
@@ -104,6 +105,7 @@ Item {
104105 anchors.fill: parent
105106 cache: false
106107 asynchronous: true
108+ fillMode: Image.PreserveAspectCrop
107109 z: 0
108110 }
109111
Shell.qml+1
@@ -160,6 +160,7 @@ FocusScope {
160160 sourceSize.width: parent.width
161161 sourceSize.height: parent.height
162162 anchors.fill: parent
163+ fillMode: Image.PreserveAspectCrop
163164 }
164165
165166 Rectangle {