mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
telepathyClient: fix summaryNotification to grow properly on updates
When adding more lines to the notification, we need to move it up as well, or else the new lines will end up underneath the summary or offscreen. https://bugzilla.gnome.org/show_bug.cgi?id=615004
This commit is contained in:
parent
10ac42d6ad
commit
5012d64580
1 changed files with 16 additions and 0 deletions
|
|
@ -908,6 +908,17 @@ MessageTray.prototype = {
|
|||
time: ANIMATION_TIME,
|
||||
transition: "easeOutQuad"
|
||||
});
|
||||
|
||||
if (!this._reExpandSummaryNotificationId)
|
||||
this._reExpandSummaryNotificationId = this._summaryNotificationBin.connect('notify::height', Lang.bind(this, this._reExpandSummaryNotification));
|
||||
},
|
||||
|
||||
_reExpandSummaryNotification: function() {
|
||||
this._tween(this._summaryNotificationBin, "_summaryNotificationState", State.SHOWN,
|
||||
{ y: this.actor.height - this._summaryNotificationBin.height,
|
||||
time: ANIMATION_TIME,
|
||||
transition: "easeOutQuad"
|
||||
});
|
||||
},
|
||||
|
||||
_hideSummaryNotification: function() {
|
||||
|
|
@ -921,6 +932,11 @@ MessageTray.prototype = {
|
|||
onComplete: this._hideSummaryNotificationCompleted,
|
||||
onCompleteScope: this
|
||||
});
|
||||
|
||||
if (this._reExpandSummaryNotificationId) {
|
||||
this._summaryNotificationBin.disconnect(this._reExpandSummaryNotificationId);
|
||||
this._reExpandSummaryNotificationId = 0;
|
||||
}
|
||||
},
|
||||
|
||||
_hideSummaryNotificationCompleted: function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue