From 05c8042d70e278c0b32b08ff220d23107b8fb523 Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Thu, 17 Feb 2011 21:41:20 +0100 Subject: [PATCH] Bug 634558 - Hidden tabs flicker when dragging tabs out of a stacked group [r=ian, a=beltzner] --- browser/base/content/tabview/groupitems.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/base/content/tabview/groupitems.js b/browser/base/content/tabview/groupitems.js index f59bc84dbda7..0196fa66c5db 100644 --- a/browser/base/content/tabview/groupitems.js +++ b/browser/base/content/tabview/groupitems.js @@ -1330,7 +1330,6 @@ GroupItem.prototype = Utils.extend(new Item(), new Subscribable(), { child.addClass("stacked"); child.isStacked = true; if (numInPile-- > 0) { - child.setHidden(false); if (child == self.topChild) children.unshift(child); else @@ -1347,8 +1346,9 @@ GroupItem.prototype = Utils.extend(new Item(), new Subscribable(), { // Force a recalculation of height because we've changed how the title // is shown. - child.setBounds(box, !animate, {force:true}); + child.setBounds(box, !animate || child.getHidden(), {force:true}); child.setRotation((UI.rtl ? -1 : 1) * angleAccum); + child.setHidden(false); angleAccum += angleDelta; });