[gnome-shell] loginDialog: force user list and prompt to be the same width



commit 35b4907e5214c41579b363c288f891f0db829324
Author: Ray Strode <rstrode redhat com>
Date:   Wed Jun 26 12:36:10 2013 -0400

    loginDialog: force user list and prompt to be the same width

 js/gdm/loginDialog.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 57b6019..459ec39 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -479,7 +479,11 @@ const LoginDialog = new Lang.Class({
         this._promptBox.add_constraint(new Clutter.AlignConstraint({ source: this.actor,
                                                                      align_axis: Clutter.AlignAxis.BOTH,
                                                                      factor: 0.5 }));
+
         this.actor.add_child(this._promptBox);
+        this._userList.actor.add_constraint(new Clutter.BindConstraint({ source: this._promptBox,
+                                                                         coordinate: 
Clutter.BindCoordinate.WIDTH }));
+
         this._promptUser = new St.Bin({ x_fill: true,
                                         x_align: St.Align.START });
         this._promptBox.add(this._promptUser,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]