on xenial help sign in
Use PreserveAspectCrop
a643326Andrea Cimitan
Components/CrossFadeImage.qml+2
@@ -96,6 +96,7 @@ Item {
96 anchors.fill: parent
96 anchors.fill: parent
97 cache: false
97 cache: false
98 asynchronous: true
98 asynchronous: true
99+ fillMode: Image.PreserveAspectCrop
99 z: 1
100 z: 1
100 }
101 }
101
102
@@ -104,6 +105,7 @@ Item {
104 anchors.fill: parent
105 anchors.fill: parent
105 cache: false
106 cache: false
106 asynchronous: true
107 asynchronous: true
108+ fillMode: Image.PreserveAspectCrop
107 z: 0
109 z: 0
108 }
110 }
109
111
Shell.qml+1
@@ -160,6 +160,7 @@ FocusScope {
160 sourceSize.width: parent.width
160 sourceSize.width: parent.width
161 sourceSize.height: parent.height
161 sourceSize.height: parent.height
162 anchors.fill: parent
162 anchors.fill: parent
163+ fillMode: Image.PreserveAspectCrop
163 }
164 }
164
165
165 Rectangle {
166 Rectangle {