From 49189e0e436e93a3494157697e490ad4540918f2 Mon Sep 17 00:00:00 2001 From: Yosef Or Boczko Date: Wed, 11 Dec 2013 22:36:15 +0200 Subject: [PATCH] authPrompt: Explicitly set horizontal alignment When set to fill, the label will always end up left-aligned, which is only correct in LTR locales. Set the alignment explicitly to work in both RTL and LTR locales. https://bugzilla.gnome.org/show_bug.cgi?id=712638 --- js/gdm/authPrompt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 996b363f0..7a3cf0a29 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -93,7 +93,7 @@ const AuthPrompt = new Lang.Class({ this.actor.add(this._label, { expand: true, - x_fill: true, + x_fill: false, y_fill: true, x_align: St.Align.START }); this._entry = new St.Entry({ style_class: 'login-dialog-prompt-entry', @@ -111,7 +111,7 @@ const AuthPrompt = new Lang.Class({ this._message = new St.Label({ opacity: 0, styleClass: 'login-dialog-message' }); this._message.clutter_text.line_wrap = true; - this.actor.add(this._message, { x_fill: true, y_align: St.Align.START }); + this.actor.add(this._message, { x_fill: false, x_align: St.Align.START, y_align: St.Align.START }); this._buttonBox = new St.BoxLayout({ style_class: 'login-dialog-button-box', vertical: false });