on xenial help sign in
Notifications should be on right side when wide. (LP: 1379384) Fixes: #1379384
688a67aYing-Chun Liu
qml/Shell.qml+10−3
@@ -764,19 +764,26 @@ Item {
764 margin: units.gu(1)
764 margin: units.gu(1)
765
765
766 y: topmostIsFullscreen ? 0 : panel.panelHeight
766 y: topmostIsFullscreen ? 0 : panel.panelHeight
767− width: parent.width
768 height: parent.height - (topmostIsFullscreen ? 0 : panel.panelHeight)
767 height: parent.height - (topmostIsFullscreen ? 0 : panel.panelHeight)
769
768
770 states: [
769 states: [
771 State {
770 State {
772 name: "narrow"
771 name: "narrow"
773 when: overlay.width <= units.gu(60)
772 when: overlay.width <= units.gu(60)
773+ AnchorChanges {
774+ target: notifications
774− AnchorChanges { target: notifications; anchors.left: parent.left }
775+ anchors.left: parent.left
776+ anchors.right: parent.right
777+ }
775 },
778 },
776 State {
779 State {
777 name: "wide"
780 name: "wide"
778 when: overlay.width > units.gu(60)
781 when: overlay.width > units.gu(60)
782+ AnchorChanges {
783+ target: notifications
779− AnchorChanges { target: notifications; anchors.left: undefined }
784+ anchors.left: undefined
785+ anchors.right: parent.right
786+ }
780 PropertyChanges { target: notifications; width: units.gu(38) }
787 PropertyChanges { target: notifications; width: units.gu(38) }
781 }
788 }
782 ]
789 ]