on xenial help sign in
Properly clip the splash image
c6bc1b1Rodney Dawes
qml/Stage/Splash.qml+8−1
@@ -32,6 +32,9 @@ Item {
32 property alias title: header.title
32 property alias title: header.title
33 property alias showHeader: header.visible
33 property alias showHeader: header.visible
34
34
35+ // Set clip to prevent drawing outside the window rectangle
36+ clip: true
37+
35 Ambiance.Palette {
38 Ambiance.Palette {
36 id: ambiancePalette
39 id: ambiancePalette
37 }
40 }
@@ -89,10 +92,14 @@ Item {
89 id: overlaidImage
92 id: overlaidImage
90 anchors.centerIn: parent
93 anchors.centerIn: parent
91 anchors.verticalCenterOffset: header.visible ? header.height / 2 : 0
94 anchors.verticalCenterOffset: header.visible ? header.height / 2 : 0
95+ sourceSize {
96+ width: root.width
97+ height: root.height
98+ }
92 asynchronous: true
99 asynchronous: true
93 fillMode: Image.PreserveAspectFit
100 fillMode: Image.PreserveAspectFit
94 cache: false
101 cache: false
95− crop: true
102+ clip: true
96 }
103 }
97
104
98 UbuntuShape {
105 UbuntuShape {