ScreenShield: don't add the source actor directly to the boxlayout
StBoxLayout always fills on the orthogonal direction, so the icon becomes distorted as the layout grows to accomodate more details. Instead, use a bin that aligns at the start. https://bugzilla.gnome.org/show_bug.cgi?id=693822
This commit is contained in:
parent
07676d483d
commit
b45a2d7335
@ -204,7 +204,10 @@ const NotificationsBox = new Lang.Class({
|
||||
|
||||
_makeNotificationDetailedSource: function(source, box) {
|
||||
let sourceActor = new MessageTray.SourceActor(source, SUMMARY_ICON_SIZE);
|
||||
box.add(sourceActor.actor, { y_fill: true });
|
||||
let sourceBin = new St.Bin({ y_align: St.Align.START,
|
||||
x_align: St.Align.START,
|
||||
child: sourceActor.actor });
|
||||
box.add(sourceBin);
|
||||
|
||||
let textBox = new St.BoxLayout({ vertical: true });
|
||||
box.add(textBox, { y_fill: false, y_align: St.Align.START });
|
||||
|
Loading…
Reference in New Issue
Block a user