From 84661986261d69e3213868a23a2a22096ab6d6b1 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Sat, 17 Sep 2011 18:45:15 -0400 Subject: [PATCH] loginDialog: subtract padding when drawing focus line If there's no scrollbar in the user list it grows as the user arrows around. This is because it wasn't taking padding into account when computing its destination size. https://bugzilla.gnome.org/show_bug.cgi?id=658469 --- js/gdm/loginDialog.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 178551e3d..664b3fafd 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -247,12 +247,15 @@ UserListItem.prototype = { showFocusAnimation: function(time) { let hold = new Batch.Hold(); + let node = this.actor.get_theme_node(); + let padding = node.get_horizontal_padding(); + let box = this._verticalBox.get_allocation_box(); Tweener.removeTweens(this._focusBin); this._focusBin.width = 0; Tweener.addTween(this._focusBin, - { width: box.x2 - box.x1, + { width: (box.x2 - box.x1 - padding), time: time, transition: 'linear', onComplete: function() {