popupMenu: Center separators vertically

This commit is contained in:
Florian Müllner 2015-03-06 18:57:19 +01:00
parent 3614da6845
commit e1816cd228

View File

@ -263,7 +263,9 @@ const PopupSeparatorMenuItem = new Lang.Class({
Lang.bind(this, this._syncVisibility));
this._syncVisibility();
this._separator = new St.Widget({ style_class: 'popup-separator-menu-item' });
this._separator = new St.Widget({ style_class: 'popup-separator-menu-item',
y_expand: true,
y_align: Clutter.ActorAlign.CENTER });
this.actor.add(this._separator, { expand: true });
},