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:
Colin Walters 2009-08-13 14:59:16 -04:00
parent a4bf54e465
commit 4f5c3b4b74

View File

@ -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);
}
};