treestyletab-tabbar-autohide-state属性の値として現在のタブバーの状態を保持するようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5545 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
44ea892ee9
commit
8e8147f5c0
@ -11,6 +11,11 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
|||||||
|
|
||||||
kAUTOHIDE : 'treestyletab-tabbar-autohide',
|
kAUTOHIDE : 'treestyletab-tabbar-autohide',
|
||||||
|
|
||||||
|
kSTATE : 'treestyletab-tabbar-autohide-state',
|
||||||
|
kSTATE_HIDDEN : 'hidden',
|
||||||
|
kSTATE_EXPANDED : 'expanded',
|
||||||
|
kSTATE_SHRUNKEN : 'shrunken',
|
||||||
|
|
||||||
kSHOWN_BY_UNKNOWN : 0,
|
kSHOWN_BY_UNKNOWN : 0,
|
||||||
kSHOWN_BY_SHORTCUT : 1 << 0,
|
kSHOWN_BY_SHORTCUT : 1 << 0,
|
||||||
kSHOWN_BY_MOUSEMOVE : 1 << 1,
|
kSHOWN_BY_MOUSEMOVE : 1 << 1,
|
||||||
@ -150,6 +155,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
|||||||
|
|
||||||
sv.container.style.margin = 0;
|
sv.container.style.margin = 0;
|
||||||
sv.mTabBrowser.removeAttribute(this.kAUTOHIDE);
|
sv.mTabBrowser.removeAttribute(this.kAUTOHIDE);
|
||||||
|
sv.mTabBrowser.removeAttribute(this.kSTATE);
|
||||||
sv.mTabBrowser.removeAttribute(this.kTRANSPARENT);
|
sv.mTabBrowser.removeAttribute(this.kTRANSPARENT);
|
||||||
this.reallyShown = true;
|
this.reallyShown = true;
|
||||||
this.expanded = true;
|
this.expanded = true;
|
||||||
@ -502,6 +508,8 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
b.setAttribute(this.kSTATE, this.kSTATE_EXPANDED);
|
||||||
|
|
||||||
switch (this.mode)
|
switch (this.mode)
|
||||||
{
|
{
|
||||||
case this.kMODE_HIDE:
|
case this.kMODE_HIDE:
|
||||||
@ -530,11 +538,13 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
|||||||
{
|
{
|
||||||
case this.kMODE_HIDE:
|
case this.kMODE_HIDE:
|
||||||
b.setAttribute(this.kAUTOHIDE, 'hidden');
|
b.setAttribute(this.kAUTOHIDE, 'hidden');
|
||||||
|
b.setAttribute(this.kSTATE, this.kSTATE_HIDDEN);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
case this.kMODE_SHRINK:
|
case this.kMODE_SHRINK:
|
||||||
b.setAttribute(this.kAUTOHIDE, 'show');
|
b.setAttribute(this.kAUTOHIDE, 'show');
|
||||||
|
b.setAttribute(this.kSTATE, this.kSTATE_SHRUNKEN);
|
||||||
if (pos == 'left' || pos == 'right')
|
if (pos == 'left' || pos == 'right')
|
||||||
b.mStrip.width = this.getTreePref('tabbar.shrunkenWidth');
|
b.mStrip.width = this.getTreePref('tabbar.shrunkenWidth');
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user