From 420e504f20b2a115f7934ba4d640b3fa19c7fbcc Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 13 May 2009 06:47:06 +0000 Subject: [PATCH] =?UTF-8?q?informational=20tab=E3=81=A7=E3=82=B5=E3=83=A0?= =?UTF-8?q?=E3=83=8D=E3=82=A4=E3=83=AB=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=97?= =?UTF-8?q?=E3=81=9F=E7=8A=B6=E6=85=8B=E3=81=AE=E6=99=82=E3=80=81=E3=82=BF?= =?UTF-8?q?=E3=83=96=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=99=E3=82=8B=E6=99=82?= =?UTF-8?q?=E3=81=AE=E3=82=A2=E3=83=8B=E3=83=A1=E3=83=BC=E3=82=B7=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=81=8C=E3=81=8A=E3=81=8B=E3=81=97=E3=81=8F=E3=81=AA?= =?UTF-8?q?=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= 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@4422 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index a4a3ec36..30e8a0d2 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -3219,13 +3219,20 @@ TreeStyleTabBrowser.prototype = { var maxMargin; var offsetAttr; - if (this.isVertical) { - maxMargin = this.getFirstTab(this.mTabBrowser).boxObject.height; - offsetAttr = this.kY_OFFSET; - } - else { - maxMargin = this.getFirstTab(this.mTabBrowser).boxObject.width; - offsetAttr = this.kX_OFFSET; + let (firstTab) { + firstTab = this.getFirstTab(this.mTabBrowser); + if (this.isVertical) { + maxMargin = firstTab.boxObject.height; + offsetAttr = this.kY_OFFSET; + if (firstTab.style.height) + aTab.style.height = firstTab.style.height; + } + else { + maxMargin = firstTab.boxObject.width; + offsetAttr = this.kX_OFFSET; + if (firstTab.style.width) + aTab.style.width = firstTab.style.width; + } } var startMargin, endMargin, startOpacity, endOpacity;