タブを開いた時のスライドエフェクトが機能しなくなっていた
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5274 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
0b12b69018
commit
91e0cbbf59
@ -1405,7 +1405,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
if (this.animationEnabled) {
|
if (this.animationEnabled) {
|
||||||
this.updateTabCollapsed(tab, true, true);
|
this.updateTabCollapsed(tab, true, true);
|
||||||
this.updateTabCollapsed(tab, false, !this.completelyRestored);
|
this.updateTabCollapsed(tab, false, this.restoringWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.readiedToOpenDivertedTab) {
|
if (this.readiedToOpenDivertedTab) {
|
||||||
@ -1827,6 +1827,17 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
}
|
}
|
||||||
tab.removeAttribute(this.kID_RESTORING);
|
tab.removeAttribute(this.kID_RESTORING);
|
||||||
|
|
||||||
|
var children = this.getTabValue(tab, this.kCHILDREN);
|
||||||
|
if (!mayBeDuplicated || tab.hasAttribute(this.kCHILDREN)) {
|
||||||
|
// for safety
|
||||||
|
this.getChildTabs(tab).forEach(function(aTab) {
|
||||||
|
this.partTab(aTab, {
|
||||||
|
dontUpdateIndent : true,
|
||||||
|
dontAnimate : restoringMultipleTabs
|
||||||
|
});
|
||||||
|
}, this);
|
||||||
|
}
|
||||||
|
|
||||||
if (!mayBeDuplicated) {
|
if (!mayBeDuplicated) {
|
||||||
/* If it has a parent, it is wrongly attacched by tab moving
|
/* If it has a parent, it is wrongly attacched by tab moving
|
||||||
on restoring. Restoring the old ID (the next statement)
|
on restoring. Restoring the old ID (the next statement)
|
||||||
@ -1852,7 +1863,6 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
var isSubTreeCollapsed = (this.getTabValue(tab, this.kSUBTREE_COLLAPSED) == 'true');
|
var isSubTreeCollapsed = (this.getTabValue(tab, this.kSUBTREE_COLLAPSED) == 'true');
|
||||||
this.setTabValue(tab, this.kSUBTREE_COLLAPSED, isSubTreeCollapsed);
|
this.setTabValue(tab, this.kSUBTREE_COLLAPSED, isSubTreeCollapsed);
|
||||||
|
|
||||||
var children = this.getTabValue(tab, this.kCHILDREN);
|
|
||||||
var tabs = [];
|
var tabs = [];
|
||||||
if (children) {
|
if (children) {
|
||||||
tab.removeAttribute(this.kCHILDREN);
|
tab.removeAttribute(this.kCHILDREN);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user