From a4136ddcc5381d25b74092b690b39a0a5be16b55 Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 21 Apr 2009 06:21:15 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=81=AE=E5=B9=85=E3=81=AB?= =?UTF-8?q?=E9=96=A2=E3=81=99=E3=82=8B=E8=A8=AD=E5=AE=9A=E3=81=AE=E5=A4=89?= =?UTF-8?q?=E6=9B=B4=E3=82=92=E5=8D=B3=E5=BA=A7=E3=81=ABGUI=E3=81=AB?= =?UTF-8?q?=E5=8F=8D=E6=98=A0=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=97=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@4167 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 2 ++ content/treestyletab/treestyletabbrowser.js | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 5ad18915..9af6d868 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1762,10 +1762,12 @@ catch(e) { onTabbarResized : function(aEvent) { var b = this.getTabBrowserFromChild(aEvent.currentTarget); + this.tabbarWidthResetting = true; if (!b.treeStyleTab.tabbarExpanded) this.setTreePref('tabbar.shrunkenWidth', b.mStrip.boxObject.width); else this.setTreePref('tabbar.width', b.mStrip.boxObject.width); + this.tabbarWidthResetting = false; }, initContextMenu : function() diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 09436689..801370ce 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1101,6 +1101,18 @@ TreeStyleTabBrowser.prototype = { case 'extensions.treestyletab.tabbar.width': case 'extensions.treestyletab.tabbar.shrunkenWidth': + if (!this.tabbarWidthResetting && this.isVertical) { + this.mTabBrowser.mStrip.removeAttribute('width'); + this.mTabBrowser.mStrip.setAttribute( + 'width', + ( + !this.autoHideShown && + this.autoHideMode == this.kAUTOHIDE_MODE_SHRINK + ) ? + this.getTreePref('tabbar.shrunkenWidth') : + this.getTreePref('tabbar.width') + ); + } this.checkTabsIndentOverflow(); break;