From ca728f9114845aefdf614f14913f5be24ccd88de Mon Sep 17 00:00:00 2001 From: piro Date: Sat, 8 Mar 2008 16:30:52 +0000 Subject: [PATCH] =?UTF-8?q?Firefox=203=E3=81=A7=E3=81=AE=E7=94=BB=E9=9D=A2?= =?UTF-8?q?=E3=81=AE=E3=81=A1=E3=82=89=E3=81=A4=E3=81=8D=E3=82=92=E8=BB=BD?= =?UTF-8?q?=E6=B8=9B?= 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@2002 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/res/fullScreenCanvas.xul | 66 ++++++++++++++++--- content/treestyletab/treestyletabbrowser.js | 15 +++-- 2 files changed, 65 insertions(+), 16 deletions(-) diff --git a/content/treestyletab/res/fullScreenCanvas.xul b/content/treestyletab/res/fullScreenCanvas.xul index 3d445e96..82e1d0c3 100644 --- a/content/treestyletab/res/fullScreenCanvas.xul +++ b/content/treestyletab/res/fullScreenCanvas.xul @@ -1,6 +1,5 @@ - + + " + onclick="fullScreenCanvas.hide();"/> diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 47920df2..3cf3136e 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2738,9 +2738,9 @@ TreeStyleTabBrowser.prototype = { showHideTabbarInternal : function(aReason) { + fullScreenCanvas.show(); var b = this.mTabBrowser; if (this.tabbarShown) { - fullScreenCanvas.show(); var splitter = document.getAnonymousElementByAttribute(b, 'class', this.kSPLITTER); this.tabbarHeight = b.mStrip.boxObject.height; this.tabbarWidth = b.mStrip.boxObject.width + @@ -2751,7 +2751,6 @@ TreeStyleTabBrowser.prototype = { this.tabbarShown = false; } else { - fullScreenCanvas.show(); switch (b.getAttribute(this.kTABBAR_POSITION)) { case 'left': @@ -2767,15 +2766,19 @@ TreeStyleTabBrowser.prototype = { this.container.style.marginBottom = '-'+this.tabbarHeight+'px'; break; } - b.removeAttribute(this.kAUTOHIDE); + if (this.isGecko18) b.removeAttribute(this.kAUTOHIDE); this.showHideTabbarReason = aReason || this.kSHOWN_BY_UNKNOWN; this.tabbarShown = true; } this.redrawContentArea(); - window.setTimeout(function() { - b.treeStyleTab.checkTabsIndentOverflow(); + window.setTimeout(function(aSelf) { + if (aSelf.tabbarShown) { + b.removeAttribute(aSelf.kAUTOHIDE); + aSelf.redrawContentArea(); + } + aSelf.checkTabsIndentOverflow(); fullScreenCanvas.hide(); - }, 0); + }, 0, this); }, showHideTabbarReason : 0,