[gnome-shell] loginDialog: subtract padding when drawing focus line
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] loginDialog: subtract padding when drawing focus line
- Date: Sun, 18 Sep 2011 03:25:56 +0000 (UTC)
commit 84661986261d69e3213868a23a2a22096ab6d6b1
Author: Ray Strode <rstrode redhat com>
Date: Sat Sep 17 18:45:15 2011 -0400
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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 178551e..664b3fa 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() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]