run-dialog: Center error message vertically

Commit 912a30c56 left error message and icon aligned to the top,
but it looks better when the message is centered vertically.
This commit is contained in:
Florian Müllner 2011-01-27 21:56:12 +01:00
parent 912a30c566
commit 9617e83d88

View File

@ -232,7 +232,9 @@ __proto__: ModalDialog.ModalDialog.prototype,
this._errorMessage = new St.Label({ style_class: 'run-dialog-error-label' }); this._errorMessage = new St.Label({ style_class: 'run-dialog-error-label' });
this._errorMessage.clutter_text.line_wrap = true; this._errorMessage.clutter_text.line_wrap = true;
this._errorBox.add(this._errorMessage, { expand: true, y_align: St.Align.MIDDLE }); this._errorBox.add(this._errorMessage, { expand: true,
y_align: St.Align.MIDDLE,
y_fill: false });
this._errorBox.hide(); this._errorBox.hide();