From e2b536c0056db9219c35efaaa584541c20e0e5ac Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 9 Nov 2007 15:13:25 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E3=82=B9=E3=83=97=E3=83=AA=E3=83=83=E3=82=BF=E4=B8=AD=E5=A4=AE?= =?UTF-8?q?=E3=81=AE=E3=82=B0=E3=83=AA=E3=83=83=E3=83=94=E3=83=BC=E3=82=92?= =?UTF-8?q?=E3=82=AF=E3=83=AA=E3=83=83=E3=82=AF=E3=81=97=E3=81=9F=E6=99=82?= =?UTF-8?q?=E3=81=AB=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=82=92=E9=96=8B?= =?UTF-8?q?=E9=96=89=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1538 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.css | 2 +- content/treestyletab/treestyletab.js | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/content/treestyletab/treestyletab.css b/content/treestyletab/treestyletab.css index 4461b3e1..8b35b0c0 100644 --- a/content/treestyletab/treestyletab.css +++ b/content/treestyletab/treestyletab.css @@ -16,7 +16,7 @@ tabbrowser[treestyletab-allow-subtree-collapse="true"] .tabbrowser-tab[treestyle } tabbrowser[treestyletab-allow-subtree-collapse="true"] .tabbrowser-tab[treestyletab-collapsed="true"], -.tabbrowser-strip[collapsed="true"]+splitter, +.tabbrowser-strip[collapsed="true"]+splitter:not([state="collapsed"]), tabbrowser[treestyletab-tabbar-autohide="true"] .tabbrowser-strip, tabbrowser[treestyletab-tabbar-autohide="true"] .tabbrowser-strip+splitter, #appcontent[ahFull="true"] .tabbrowser-strip[ahHIDE="true"]+splitter /* AutoHide */ { diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 95c63e29..43f80cac 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -2082,6 +2082,7 @@ catch(e) { splitter = document.createElement('splitter'); splitter.setAttribute('class', this.kSPLITTER); splitter.setAttribute('onmouseup', 'TreeStyleTabService.onTabbarResized(event);'); + splitter.setAttribute('state', 'open'); splitter.appendChild(document.createElement('grippy')); var ref = aTabBrowser.mPanelContainer; ref.parentNode.insertBefore(splitter, ref); @@ -2105,7 +2106,7 @@ catch(e) { aTabBrowser.mTabContainer.setAttribute('align', 'stretch'); // for Mac OS X scrollInnerBox.removeAttribute('flex'); - aTabBrowser.mPanelContainer.removeAttribute('width'); + aTabBrowser.mStrip.removeAttribute('width'); aTabBrowser.mStrip.setAttribute('width', this.getTreePref('tabbar.width')); aTabBrowser.setAttribute(this.kMODE, 'vertical'); @@ -2119,12 +2120,14 @@ catch(e) { aTabBrowser.removeAttribute(this.kUI_INVERTED); this.levelMarginProp = 'margin-left'; } - window.setTimeout(function() { + window.setTimeout(function(aWidth) { + aTabBrowser.mStrip.setAttribute('width', aWidth); aTabBrowser.mTabDropIndicatorBar.setAttribute('ordinal', 1); aTabBrowser.mStrip.setAttribute('ordinal', 30); splitter.setAttribute('ordinal', 20); aTabBrowser.mPanelContainer.setAttribute('ordinal', 10); - }, 0); + splitter.setAttribute('collapse', 'after'); + }, 0, this.getTreePref('tabbar.width')); } else { aTabBrowser.setAttribute(this.kTABBAR_POSITION, 'left'); @@ -2135,6 +2138,7 @@ catch(e) { aTabBrowser.mStrip.setAttribute('ordinal', 10); splitter.setAttribute('ordinal', 20); aTabBrowser.mPanelContainer.setAttribute('ordinal', 30); + splitter.setAttribute('collapse', 'before'); }, 0); } }