Properly clip the splash image
commitc6bc1b1c23cfd8091f0e93f201b8f5fb25b4e769
authorRodney Dawes <dobey@ubports.com>
dateWed 4 Nov 2020, 10:40 (6 years ago)
parentcfbdb6c
qml/Stage/Splash.qml+8−1
@@ -32,6 +32,9 @@ Item {
3232 property alias title: header.title
3333 property alias showHeader: header.visible
3434
35+ // Set clip to prevent drawing outside the window rectangle
36+ clip: true
37+
3538 Ambiance.Palette {
3639 id: ambiancePalette
3740 }
@@ -89,10 +92,14 @@ Item {
8992 id: overlaidImage
9093 anchors.centerIn: parent
9194 anchors.verticalCenterOffset: header.visible ? header.height / 2 : 0
95+ sourceSize {
96+ width: root.width
97+ height: root.height
98+ }
9299 asynchronous: true
93100 fillMode: Image.PreserveAspectFit
94101 cache: false
95− crop: true
102+ clip: true
96103 }
97104
98105 UbuntuShape {