From d2a16bca10fcc3be39895a99a1607483f4e65fdc Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sun, 17 Apr 2011 20:17:26 +0200 Subject: [PATCH] altTab: Fix the appSwitcher's allocation A typo in AltTabPopup._allocate was causing the allocation to be wrong which broke icon scrolling, so fix that. https://bugzilla.gnome.org/show_bug.cgi?id=647807 --- js/ui/altTab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index ed541b316..43b755230 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -87,7 +87,7 @@ AltTabPopup.prototype = { let [childMinHeight, childNaturalHeight] = this._appSwitcher.actor.get_preferred_height(primary.width - hPadding); let [childMinWidth, childNaturalWidth] = this._appSwitcher.actor.get_preferred_width(childNaturalHeight); childBox.x1 = Math.max(primary.x + leftPadding, primary.x + Math.floor((primary.width - childNaturalWidth) / 2)); - childBox.x2 = Math.min(primary.x + primary.width - hPadding, childBox.x1 + childNaturalWidth); + childBox.x2 = Math.min(primary.x + primary.width - rightPadding, childBox.x1 + childNaturalWidth); childBox.y1 = primary.y + Math.floor((primary.height - childNaturalHeight) / 2); childBox.y2 = childBox.y1 + childNaturalHeight; this._appSwitcher.actor.allocate(childBox, flags);