on xenial help sign in
Solved top-margin issues in fullscreen snap-decision due to added sync. notification support.
commitc083dee480a89e3701e94835a3649025f953d7ec authorMirco Müller <mirco.mueller@canonical.com> dateTue 14 Oct 2014, 12:07 (12 years ago) parentec13d0e
2 files changed+4−3
qml/Notifications/Notification.qml+2−1 qml/Shell.qml+2−2
qml/Notifications/Notification.qml+2−1
@@ -49,7 +49,7 @@ Item {
4949 readonly property real contentSpacing: units.gu(2)
5050
5151 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
5353
5454 color: (type === Notification.Confirmation && notificationList.useModal && !greeter.shown) || darkOnBright ? sdLightGrey : Qt.rgba(0.132, 0.117, 0.109, 0.97)
5555 opacity: 1 // FIXME: 1 because of LP: #1354406 workaround, has to be 0 really
@@ -127,6 +127,7 @@ Item {
127127 fill: parent
128128 leftMargin: notification.margins
129129 rightMargin: notification.margins
130+ topMargin: type === Notification.Confirmation ? units.gu(.5) : 0
130131 }
131132 color: parent.color
132133 opacity: parent.opacity
qml/Shell.qml+2−2
@@ -642,9 +642,9 @@ Item {
642642 model: NotificationBackend.Model
643643 margin: units.gu(1)
644644
645− y: panel.panelHeight + margin
645+ y: panel.panelHeight
646646 width: parent.width
647− height: parent.height - panel.panelHeight - margin
647+ height: parent.height - panel.panelHeight
648648
649649 states: [
650650 State {