@@ -55,29 +55,11 @@ StyledItem {
55 name: "Ubuntu.Components.Themes.Ambiance"
55 name: "Ubuntu.Components.Themes.Ambiance"
60− readonly property bool expanded: {
58+ readonly property bool expanded: type === Notification.SnapDecision && // expand only snap decisions, if...
61− var result = false;
59+ (fullscreen || // - it's a fullscreen one
63− if (type === Notification.SnapDecision) {
64− if (ListView.view.currentIndex === index || fullscreen) {
60+ ListView.view.currentIndex === index || // - it's the one the user clicked on
67− if (ListView.view.count > 2) {
68− if (ListView.view.currentIndex === -1 && index == 1) {
61+ (ListView.view.currentIndex === -1 && index == 0) // - the first one after the user closed the previous one
82 NotificationAudio {
64 NotificationAudio {
@@ -125,7 +107,6 @@ StyledItem {
125 notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
107 notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
127 notification.notification.close();
109 notification.notification.close();
128− notification.dismissed()
131 Behavior on x {
112 Behavior on x {
@@ -142,9 +123,11 @@ StyledItem {
142 if (fullscreen) {
123 if (fullscreen) {
143 notification.notification.urgency = Notification.Critical;
124 notification.notification.urgency = Notification.Critical;
126+ ListView.view.topmostIsFullscreen = fullscreen;
147− Behavior on height {
129+ Behavior on implicitHeight {
130+ enabled: !fullscreen
148 UbuntuNumberAnimation {
131 UbuntuNumberAnimation {
149 duration: UbuntuAnimation.SnapDuration
132 duration: UbuntuAnimation.SnapDuration
@@ -217,7 +200,6 @@ StyledItem {
217 onNameOwnerChanged: {
200 onNameOwnerChanged: {
218 if (lastNameOwner !== "" && nameOwner === "" && notification.notification !== undefined) {
201 if (lastNameOwner !== "" && nameOwner === "" && notification.notification !== undefined) {
219 notification.notification.close()
202 notification.notification.close()
220− notification.dismissed()
222 lastNameOwner = nameOwner
204 lastNameOwner = nameOwner
@@ -239,7 +221,7 @@ StyledItem {
239 if (notification.type === Notification.Interactive) {
221 if (notification.type === Notification.Interactive) {
240 notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
222 notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
242− notificationList.currentIndex = index;
224+ notification.ListView.view.currentIndex = index;
245 onReleased: {
227 onReleased: {
@@ -443,7 +425,6 @@ StyledItem {
444 onAccepted: {
426 onAccepted: {
445 notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
427 notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
446− notification.dismissed()