Always make notifications with '\n' in bannerText expandable
Right now notifications are expandable if the length of bannerText exceeds the notification's width - however, if bannerText contains newlines, it should be expandable regardless of the length. https://bugzilla.gnome.org/show_bug.cgi?id=610549
This commit is contained in:
parent
a21ba292eb
commit
f9c5202dd1
@ -287,7 +287,8 @@ Notification.prototype = {
|
|||||||
overflow = true;
|
overflow = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (overflow && this._bannerBodyText)
|
if (this._bannerBodyText &&
|
||||||
|
(overflow || this._bannerBodyText.indexOf('\n') > -1))
|
||||||
this._addBannerBody();
|
this._addBannerBody();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user