mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
49550d2b5c
commit
9a992624e0
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user