From d1c4e6063603998fc330cd977fd64017f3e35f62 Mon Sep 17 00:00:00 2001 From: Jonh Wendell Date: Mon, 13 Jan 2014 15:43:01 -0200 Subject: [PATCH] switcherPopup: Always show the arrows if the popup is scrollable Currently we only show/hide the left and right arrows when we reach the initial/end position. This patch changes this behaviour by showing the arrows whenever is a scroll is possible. https://bugzilla.gnome.org/show_bug.cgi?id=711467 --- js/ui/switcherPopup.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index 3538825e9..3b1532f33 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -452,10 +452,9 @@ const SwitcherList = new Lang.Class({ time: POPUP_SCROLL_TIME, transition: 'easeOutQuad', onComplete: Lang.bind(this, function () { - if (this._highlighted == 0) { + if (this._highlighted == 0) this._scrollableLeft = false; - this.actor.queue_relayout(); - } + this.actor.queue_relayout(); }) }); }, @@ -477,10 +476,9 @@ const SwitcherList = new Lang.Class({ time: POPUP_SCROLL_TIME, transition: 'easeOutQuad', onComplete: Lang.bind(this, function () { - if (this._highlighted == this._items.length - 1) { + if (this._highlighted == this._items.length - 1) this._scrollableRight = false; - this.actor.queue_relayout(); - } + this.actor.queue_relayout(); }) }); },