on xenial help sign in
Fix notification width.
201437eMichał Sawicz
Shell.qml+16−1
@@ -567,11 +567,26 @@ FocusScope {
567
567
568 model: NotificationBackend.Model
568 model: NotificationBackend.Model
569 anchors {
569 anchors {
570+ top: parent.top
571+ right: parent.right
570− fill: parent
572+ bottom: parent.bottom
571 leftMargin: units.gu(1)
573 leftMargin: units.gu(1)
572 rightMargin: units.gu(1)
574 rightMargin: units.gu(1)
573 topMargin: panel.panelHeight + units.gu(1)
575 topMargin: panel.panelHeight + units.gu(1)
574 }
576 }
577+ states: [
578+ State {
579+ name: "narrow"
580+ when: overlay.width <= units.gu(40)
581+ AnchorChanges { target: notifications; anchors.left: parent.left }
582+ },
583+ State {
584+ name: "wide"
585+ when: overlay.width > units.gu(40)
586+ AnchorChanges { target: notifications; anchors.left: undefined }
587+ PropertyChanges { target: notifications; width: units.gu(38) }
588+ }
589+ ]
575 }
590 }
576 }
591 }
577
592