From 54d385a0a94003b1790f08252899ab193a418da1 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 1 Feb 2010 12:31:26 -0500 Subject: [PATCH] [AppSwitcher] tweak the sizing code, which depended on the previous bug --- js/ui/altTab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 412225af6..2a546940d 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -512,7 +512,7 @@ SwitcherList.prototype = { let totalSpacing = this._list.spacing * (this._items.length - 1); alloc.min_size = this._items.length * maxChildMin + separatorWidth + totalSpacing; - alloc.natural_size = this._items.length * maxChildNat + separatorWidth + totalSpacing; + alloc.natural_size = alloc.min_size; }, _getPreferredHeight: function (actor, forWidth, alloc) { @@ -528,7 +528,7 @@ SwitcherList.prototype = { if (this._squareItems) { let [childMin, childNat] = this._maxChildWidth(-1); maxChildMin = Math.max(childMin, maxChildMin); - maxChildNat = Math.max(childNat, maxChildNat); + maxChildNat = maxChildMin; } alloc.min_size = maxChildMin;