Bug 634558 - Hidden tabs flicker when dragging tabs out of a stacked group [r=ian, a=beltzner]

This commit is contained in:
Tim Taubert 2011-02-17 21:41:20 +01:00
Родитель 87a5f3aa31
Коммит 05c8042d70
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
});