positionVerticalPinnedTabsでタブの大きさを指定できるように

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7162 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-09-09 09:32:22 +00:00
parent 3375f59bae
commit 0face49c4a

View File

@ -145,13 +145,13 @@ TreeStyleTabBrowser.prototype = {
return false; return false;
}, },
positionVerticalPinnedTabs : function TSTBrowser_positionVerticalPinnedTabs() positionVerticalPinnedTabs : function TSTBrowser_positionVerticalPinnedTabs(aWidth, aHeight)
{ {
var b = this.mTabBrowser; var b = this.mTabBrowser;
var tabbar = b.tabContainer; var tabbar = b.tabContainer;
var count = b._numPinnedTabs; var count = b._numPinnedTabs;
var width = this.PINNED_TAB_WIDTH; var width = aWidth || this.PINNED_TAB_DEFAULT_WIDTH;
var height = this.PINNED_TAB_HEIGHT; var height = aHeight || this.PINNED_TAB_DEFAULT_HEIGHT;
var maxCol = Math.floor(tabbar.boxObject.width / width); var maxCol = Math.floor(tabbar.boxObject.width / width);
var maxRow = Math.ceil(count / maxCol); var maxRow = Math.ceil(count / maxCol);
var col = 0; var col = 0;
@ -171,8 +171,8 @@ TreeStyleTabBrowser.prototype = {
} }
} }
}, },
PINNED_TAB_WIDTH : 24, PINNED_TAB_DEFAULT_WIDTH : 24,
PINNED_TAB_HEIGHT : 24, PINNED_TAB_DEFAULT_HEIGHT : 24,
clearPinnedTabsAppearance : function TSTBrowser_clearPinnedTabsAppearance() clearPinnedTabsAppearance : function TSTBrowser_clearPinnedTabsAppearance()
{ {