Bug 722681 - Show the tab close button immediately when opening a second tab. r=dao

This commit is contained in:
Jared Wein 2012-02-16 11:20:26 +01:00
parent 5d8d471d8b
commit 0a8e0297ba

View File

@ -1265,6 +1265,12 @@
else { else {
t._animStartTime = Date.now(); t._animStartTime = Date.now();
t.setAttribute("fadein", "true"); t.setAttribute("fadein", "true");
// This call to adjustTabstrip is redundant but needed so that
// when opening a second tab, the first tab's close buttons
// appears immediately rather than when the transition ends.
if (tabContainer.childNodes.length == 2)
tabContainer.adjustTabstrip();
} }
}, 0, this.tabContainer); }, 0, this.tabContainer);
} }