From 870d11e0cb6e83dd6e89ec3321e4f2f862bcd916 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 17 Oct 2008 15:47:45 +0000 Subject: [PATCH] =?UTF-8?q?Split=20Browser=E3=81=A8=E7=B5=84=E3=81=BF?= =?UTF-8?q?=E5=90=88=E3=82=8F=E3=81=9B=E3=81=9F=E6=99=82=E3=81=AE=E5=88=B6?= =?UTF-8?q?=E9=99=90=E3=82=92=E5=A4=96=E3=81=99=E9=9A=A0=E3=81=97=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A?= 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@3190 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 7 ++++--- defaults/preferences/treestyletab.js | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 0483897a..55cfc2c0 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -627,7 +627,8 @@ TreeStyleTabBrowser.prototype = { if (!aPosition) aPosition = this.getTreePref('tabbar.position'); aPosition = String(aPosition).toLowerCase(); - if (b.getAttribute('id') != 'content') { + if (b.getAttribute('id') != 'content' && + !this.getTreePref('tabbar.position.subbrowser.enabled')) { aPosition = 'top'; } @@ -671,7 +672,7 @@ TreeStyleTabBrowser.prototype = { this.invertedPositionProp = 'screenX'; this.invertedSizeProp = 'width'; - b.mTabBox.orient = 'horizontal'; + b.mTabBox.orient = splitter.orient = 'horizontal'; b.mStrip.orient = b.mTabContainer.orient = b.mTabContainer.mTabstrip.orient = @@ -740,7 +741,7 @@ TreeStyleTabBrowser.prototype = { this.invertedPositionProp = 'screenY'; this.invertedSizeProp = 'height'; - b.mTabBox.orient = 'vertical'; + b.mTabBox.orient = splitter.orient = 'vertical'; b.mStrip.orient = b.mTabContainer.orient = b.mTabContainer.mTabstrip.orient = diff --git a/defaults/preferences/treestyletab.js b/defaults/preferences/treestyletab.js index 9e8d6bd3..d9a9d123 100644 --- a/defaults/preferences/treestyletab.js +++ b/defaults/preferences/treestyletab.js @@ -1,6 +1,7 @@ pref("extensions.treestyletab.tabbar.width", 200); pref("extensions.treestyletab.tabbar.shrunkenWidth", 80); pref("extensions.treestyletab.tabbar.position", "left"); +pref("extensions.treestyletab.tabbar.position.subbrowser.enabled", false); pref("extensions.treestyletab.tabbar.multirow", false); pref("extensions.treestyletab.tabbar.invertScrollbar", true); pref("extensions.treestyletab.tabbar.invertUI", true);