on xenial help sign in
Solved top-margin issues in fullscreen snap-decision due to added sync. notification support.
c083deeMirco Müller
qml/Notifications/Notification.qml+2−1
@@ -49,7 +49,7 @@ Item {
49 readonly property real contentSpacing: units.gu(2)
49 readonly property real contentSpacing: units.gu(2)
50
50
51 objectName: "background"
51 objectName: "background"
52− implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : outterColumn.height - (type === Notification.Confirmation ? units.gu(1) : 0) + contentSpacing * 2) : 0
52+ implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : outterColumn.height - (type === Notification.Confirmation ? units.gu(.5) : 0) + contentSpacing * 2) : 0
53
53
54 color: (type === Notification.Confirmation && notificationList.useModal && !greeter.shown) || darkOnBright ? sdLightGrey : Qt.rgba(0.132, 0.117, 0.109, 0.97)
54 color: (type === Notification.Confirmation && notificationList.useModal && !greeter.shown) || darkOnBright ? sdLightGrey : Qt.rgba(0.132, 0.117, 0.109, 0.97)
55 opacity: 1 // FIXME: 1 because of LP: #1354406 workaround, has to be 0 really
55 opacity: 1 // FIXME: 1 because of LP: #1354406 workaround, has to be 0 really
@@ -127,6 +127,7 @@ Item {
127 fill: parent
127 fill: parent
128 leftMargin: notification.margins
128 leftMargin: notification.margins
129 rightMargin: notification.margins
129 rightMargin: notification.margins
130+ topMargin: type === Notification.Confirmation ? units.gu(.5) : 0
130 }
131 }
131 color: parent.color
132 color: parent.color
132 opacity: parent.opacity
133 opacity: parent.opacity
qml/Shell.qml+2−2
@@ -642,9 +642,9 @@ Item {
642 model: NotificationBackend.Model
642 model: NotificationBackend.Model
643 margin: units.gu(1)
643 margin: units.gu(1)
644
644
645− y: panel.panelHeight + margin
645+ y: panel.panelHeight
646 width: parent.width
646 width: parent.width
647− height: parent.height - panel.panelHeight - margin
647+ height: parent.height - panel.panelHeight
648
648
649 states: [
649 states: [
650 State {
650 State {