Bug 574875: First run experience: tabs are put together into a single group--now without unnecessary animation! [r=dolske a=dolske]

--HG--
extra : rebase_source : 4f06fbe6cd2e0a4463f33ba0d8f13f494126ec83
This commit is contained in:
Michael Yoshitaka Erlewine 2010-08-12 16:20:59 -05:00
parent 49550d2b5c
commit 9a992624e0
2 changed files with 9 additions and 6 deletions

View File

@ -655,7 +655,10 @@ window.GroupItem.prototype = Utils.extend(new Item(), new Subscribable(), {
}
if (!options.dontArrange) {
this.arrange();
// by default, we animate the item moving to its new position
let animate = typeof options.animate == "undefined" ? true :
options.animate;
this.arrange({ animate: animate });
}
UI.setReorderTabsOnHide(this);

View File

@ -153,6 +153,10 @@ var UIManager = {
GroupItems.reconstitute(groupItemsData, groupItemData);
GroupItems.killNewTabGroup(); // temporary?
// ___ tabs
TabItems.init();
TabItems.pausePainting();
if (firstTime) {
var padding = 10;
var infoWidth = 350;
@ -176,7 +180,7 @@ var UIManager = {
if (item.parent)
item.parent.remove(item);
groupItem.add(item);
groupItem.add(item, null, {animate: false});
});
// ___ make info item
@ -195,10 +199,6 @@ var UIManager = {
infoItem.html(html);
}
// ___ tabs
TabItems.init();
TabItems.pausePainting();
// ___ resizing
if (this._pageBounds)
this._resize(true);