自動で隠す機能が働いていなかった
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6434 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
0bbcf97f55
commit
0ab550e895
@ -423,6 +423,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
|||||||
|
|
||||||
window.setTimeout(function(aSelf) {
|
window.setTimeout(function(aSelf) {
|
||||||
if (aSelf.expanded) {
|
if (aSelf.expanded) {
|
||||||
|
sv.setTabbarAttribute(aSelf.kAUTOHIDE, 'show', sv.mTabBrowser);
|
||||||
sv.mTabBrowser.setAttribute(aSelf.kAUTOHIDE, 'show');
|
sv.mTabBrowser.setAttribute(aSelf.kAUTOHIDE, 'show');
|
||||||
aSelf.redrawContentArea();
|
aSelf.redrawContentArea();
|
||||||
}
|
}
|
||||||
@ -470,6 +471,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sv.setTabbarAttribute(this.kSTATE, this.kSTATE_EXPANDED, b);
|
||||||
b.setAttribute(this.kSTATE, this.kSTATE_EXPANDED);
|
b.setAttribute(this.kSTATE, this.kSTATE_EXPANDED);
|
||||||
|
|
||||||
switch (this.mode)
|
switch (this.mode)
|
||||||
@ -499,13 +501,17 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
|||||||
switch (this.mode)
|
switch (this.mode)
|
||||||
{
|
{
|
||||||
case this.kMODE_HIDE:
|
case this.kMODE_HIDE:
|
||||||
|
sv.setTabbarAttribute(this.kAUTOHIDE, 'hidden', b);
|
||||||
b.setAttribute(this.kAUTOHIDE, 'hidden');
|
b.setAttribute(this.kAUTOHIDE, 'hidden');
|
||||||
|
sv.setTabbarAttribute(this.kSTATE, this.kSTATE_HIDDEN, b);
|
||||||
b.setAttribute(this.kSTATE, this.kSTATE_HIDDEN);
|
b.setAttribute(this.kSTATE, this.kSTATE_HIDDEN);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
case this.kMODE_SHRINK:
|
case this.kMODE_SHRINK:
|
||||||
|
sv.setTabbarAttribute(this.kAUTOHIDE, 'show', b);
|
||||||
b.setAttribute(this.kAUTOHIDE, 'show');
|
b.setAttribute(this.kAUTOHIDE, 'show');
|
||||||
|
sv.setTabbarAttribute(this.kSTATE, this.kSTATE_SHRUNKEN, b);
|
||||||
b.setAttribute(this.kSTATE, this.kSTATE_SHRUNKEN);
|
b.setAttribute(this.kSTATE, this.kSTATE_SHRUNKEN);
|
||||||
if (pos == 'left' || pos == 'right')
|
if (pos == 'left' || pos == 'right')
|
||||||
sv.tabStrip.width = this.getTreePref('tabbar.shrunkenWidth');
|
sv.tabStrip.width = this.getTreePref('tabbar.shrunkenWidth');
|
||||||
@ -748,10 +754,14 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
|||||||
];
|
];
|
||||||
if (pos != 'top' &&
|
if (pos != 'top' &&
|
||||||
this.mode != this.kMODE_DISABLED &&
|
this.mode != this.kMODE_DISABLED &&
|
||||||
style != this.kTRANSPARENT_STYLE[this.kTRANSPARENT_NONE])
|
style != this.kTRANSPARENT_STYLE[this.kTRANSPARENT_NONE]) {
|
||||||
b.setAttribute(this.kTRANSPARENT, style);
|
sv.setTabbarAttribute(this.kTRANSPARENT, this.style, b);
|
||||||
else
|
b.setAttribute(this.kTRANSPARENT, this.style);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
sv.setTabbarAttribute(this.kTRANSPARENT, null, b);
|
||||||
b.removeAttribute(this.kTRANSPARENT);
|
b.removeAttribute(this.kTRANSPARENT);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// event handling
|
// event handling
|
||||||
|
Loading…
x
Reference in New Issue
Block a user