From 0face49c4a5eb3d7deec9aa8cc97c40d7261dda1 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 9 Sep 2010 09:32:22 +0000 Subject: [PATCH] =?UTF-8?q?positionVerticalPinnedTabs=E3=81=A7=E3=82=BF?= =?UTF-8?q?=E3=83=96=E3=81=AE=E5=A4=A7=E3=81=8D=E3=81=95=E3=82=92=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= 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@7162 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 0417a9ba..6565787c 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -145,13 +145,13 @@ TreeStyleTabBrowser.prototype = { return false; }, - positionVerticalPinnedTabs : function TSTBrowser_positionVerticalPinnedTabs() + positionVerticalPinnedTabs : function TSTBrowser_positionVerticalPinnedTabs(aWidth, aHeight) { var b = this.mTabBrowser; var tabbar = b.tabContainer; var count = b._numPinnedTabs; - var width = this.PINNED_TAB_WIDTH; - var height = this.PINNED_TAB_HEIGHT; + var width = aWidth || this.PINNED_TAB_DEFAULT_WIDTH; + var height = aHeight || this.PINNED_TAB_DEFAULT_HEIGHT; var maxCol = Math.floor(tabbar.boxObject.width / width); var maxRow = Math.ceil(count / maxCol); var col = 0; @@ -171,8 +171,8 @@ TreeStyleTabBrowser.prototype = { } } }, - PINNED_TAB_WIDTH : 24, - PINNED_TAB_HEIGHT : 24, + PINNED_TAB_DEFAULT_WIDTH : 24, + PINNED_TAB_DEFAULT_HEIGHT : 24, clearPinnedTabsAppearance : function TSTBrowser_clearPinnedTabsAppearance() {