Bug 591267 - Fix places icon centering
Pack the place icon in a vertical centering box to avoid the horizontal box stretching it vertically.
This commit is contained in:
parent
a4bf54e465
commit
4f5c3b4b74
@ -32,7 +32,9 @@ PlaceDisplay.prototype = {
|
||||
ellipsize: Pango.EllipsizeMode.END,
|
||||
color: GenericDisplay.ITEM_DISPLAY_NAME_COLOR,
|
||||
text: name });
|
||||
this.actor.append(iconTexture, Big.BoxPackFlags.NONE);
|
||||
let iconBox = new Big.Box({ y_align: Big.BoxAlignment.CENTER });
|
||||
iconBox.append(iconTexture, Big.BoxPackFlags.NONE);
|
||||
this.actor.append(iconBox, Big.BoxPackFlags.NONE);
|
||||
this.actor.append(text, Big.BoxPackFlags.EXPAND);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user