From 21048ec42abb689ebd26c3afce281408712061ec Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 12 May 2009 19:09:13 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E3=81=BE=E3=81=9F=E3=81=AF=E4=B8=8B?= =?UTF-8?q?=E3=81=AB=E7=BD=AE=E3=81=8B=E3=82=8C=E3=81=9F=E3=82=BF=E3=83=96?= =?UTF-8?q?=E3=81=AE=E3=82=A4=E3=83=B3=E3=83=87=E3=83=B3=E3=83=88=E5=B9=85?= =?UTF-8?q?=E3=82=92=E4=B8=80=E5=AE=9A=E3=81=AE=E7=AF=84=E5=9B=B2=E3=81=AB?= =?UTF-8?q?=E5=8F=8E=E3=82=81=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@4419 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 8bc4bd12..e71b4750 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2963,10 +2963,17 @@ TreeStyleTabBrowser.prototype = { var oldIndent = this.indent; var indent = (oldIndent < 0 ? this.baseIndent : oldIndent ) * nest; - var maxIndent = ( - this.getFirstTab(b).boxObject[this.invertedSizeProp] || - b.mTabContainer.boxObject[this.invertedSizeProp] - ) * 0.33; + var maxIndentBase = ( + this.getFirstTab(b).boxObject[this.invertedSizeProp] || + b.mTabContainer.boxObject[this.invertedSizeProp] + ); + if (!this.isVertical) { + if (this._horizontalTabMaxIndentBase) + maxIndentBase = this._horizontalTabMaxIndentBase; + else + this._horizontalTabMaxIndentBase = maxIndentBase; + } + var maxIndent = maxIndentBase * (this.isVertical ? 0.33 : 0.5 ); var indentUnit = Math.max(Math.floor(maxIndent / nest), 1); if (indent > maxIndent) { @@ -2982,6 +2989,7 @@ TreeStyleTabBrowser.prototype = { this.updateAllTabsIndent(); } }, + _horizontalTabMaxIndentBase : 0, updateTabsCount : function(aTab, aDontUpdateAncestor) {