[gnome-shell] [AppSwitcher] tweak the sizing code, which depended on the previous bug
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] [AppSwitcher] tweak the sizing code, which depended on the previous bug
- Date: Mon, 1 Feb 2010 17:32:17 +0000 (UTC)
commit 54d385a0a94003b1790f08252899ab193a418da1
Author: Dan Winship <danw gnome org>
Date: Mon Feb 1 12:31:26 2010 -0500
[AppSwitcher] tweak the sizing code, which depended on the previous bug
js/ui/altTab.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 412225a..2a54694 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]