From 4f575eea9e68e91021f57bfa264a54f21e70d611 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 10 Sep 2010 13:46:06 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=82=92?= =?UTF-8?q?=E8=87=AA=E5=8B=95=E7=9A=84=E3=81=AB=E9=9A=A0=E3=81=99=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E3=81=A7=E3=80=81=E5=AE=8C=E5=85=A8=E3=81=AB=E3=82=BF?= =?UTF-8?q?=E3=83=96=E3=83=90=E3=83=BC=E3=82=92=E9=9A=A0=E3=81=99=E6=99=82?= =?UTF-8?q?=E3=81=AE=E6=8C=99=E5=8B=95=E3=82=92=E4=BF=AE=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@7176 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.css | 9 ++++++++- content/treestyletab/treestyletabbrowser.js | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/treestyletab.css b/content/treestyletab/treestyletab.css index 5b96e4ba..b95560a3 100644 --- a/content/treestyletab/treestyletab.css +++ b/content/treestyletab/treestyletab.css @@ -23,7 +23,9 @@ .tabbrowser-strip[treestyletab-tabbar-autohide="hidden"], .tabbrowser-tabs[treestyletab-tabbar-autohide="hidden"], .tabbrowser-strip[treestyletab-tabbar-autohide="hidden"]+splitter, -tabbrowser:not([treestyletab-tabbar-autohide="hidden"]) .treestyletab-tabbar-toggler, +tabbrowser[treestyletab-tabbar-autohide-mode="1"][tabcontainer] .tabbrowser-strip[treestyletab-tabbar-placeholder="true"], +tabbrowser[treestyletab-tabbar-autohide-mode="1"][tabcontainer] .tabbrowser-strip[treestyletab-tabbar-placeholder="true"]+splitter, +.treestyletab-tabbar-toggler, #TabsToolbar[treestyletab-tabbar-autohide="hidden"] > *, #TabsToolbar #treestyletab-tabbar-resizer-box, #appcontent[ahFull="true"] .tabbrowser-strip[ahHIDE="true"]+splitter /* AutoHide */, @@ -36,6 +38,11 @@ window[chromehidden~="toolbar"] .tabbrowser-strip[treestyletab-tabbar-placeholde window[chromehidden~="toolbar"] .tabbrowser-strip[treestyletab-tabbar-placeholder="true"]+splitter { visibility: collapse; } + +tabbrowser[treestyletab-tabbar-autohide-mode="1"][tabcontainer] .treestyletab-tabbar-toggler, +tabbrowser[treestyletab-tabbar-autohide-mode="1"][treestyletab-tabbar-autohide="hidden"] .treestyletab-tabbar-toggler { + visibility: visible; +} .tabbrowser-tabs[treestyletab-mode="vertical"] .tabbrowser-arrowscrollbox > .scrollbutton-up, diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index cf9e788c..03dae9ec 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1370,9 +1370,9 @@ TreeStyleTabBrowser.prototype = { updateFloatingTabbarResizer : function TSTBrowser_updateFloatingTabbarResizer(aSize) { var width = aSize.width; - var realWidth = aSize.realWidth; + var realWidth = this.autoHide.mode == this.autoHide.kMODE_HIDE ? 0 : aSize.realWidth ; var height = aSize.height; - var realHeight = aSize.realHeight; + var realHeight = this.autoHide.mode == this.autoHide.kMODE_HIDE ? 0 : aSize.realHeight ; var pos = this.currentTabbarPosition; var vertical = this.isVertical;