From 7f86de1fcc46cea5a25cbfc46737a90665711392 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 24 Dec 2009 15:01:23 +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=AE=E6=99=82=E3=80=81=E3=82=BF=E3=83=96=E3=83=90?= =?UTF-8?q?=E3=83=BC=E3=82=92=E5=B1=95=E9=96=8B=E3=81=97=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=82=8B=E9=96=93=E3=81=AB=E3=82=A6=E3=82=A3=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=82=A6=E3=82=92=E3=83=AA=E3=82=B5=E3=82=A4=E3=82=BA=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=81=A8=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E3=81=8C=E3=82=A6=E3=82=A3=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=82=A6=E3=81=AB=E5=90=88=E3=82=8F=E3=81=9B=E3=81=A6=E3=83=AA?= =?UTF-8?q?=E3=82=B5=E3=82=A4=E3=82=BA=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE?= =?UTF-8?q?=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@5606 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- .../treestyletabbrowser_autoHide.js | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser_autoHide.js b/content/treestyletab/treestyletabbrowser_autoHide.js index 54424823..b81343c1 100644 --- a/content/treestyletab/treestyletabbrowser_autoHide.js +++ b/content/treestyletab/treestyletabbrowser_autoHide.js @@ -104,7 +104,7 @@ TreeStyleTabBrowserAutoHide.prototype = { sv.mTabBrowser.addEventListener('mousedown', this, true); sv.mTabBrowser.addEventListener('mouseup', this, true); - sv.mTabBrowser.addEventListener('resize', this, true); + window.addEventListener('resize', this, true); sv.mTabBrowser.addEventListener('load', this, true); sv.mTabBrowser.mPanelContainer.addEventListener('scroll', this, true); if (this.shouldListenMouseMove) @@ -130,7 +130,7 @@ TreeStyleTabBrowserAutoHide.prototype = { sv.mTabBrowser.removeEventListener('mousedown', this, true); sv.mTabBrowser.removeEventListener('mouseup', this, true); - sv.mTabBrowser.removeEventListener('resize', this, true); + window.removeEventListener('resize', this, true); sv.mTabBrowser.removeEventListener('load', this, true); sv.mTabBrowser.mPanelContainer.removeEventListener('scroll', this, true); this.endListenMouseMove(); @@ -542,6 +542,12 @@ TreeStyleTabBrowserAutoHide.prototype = { try { var v = sv.mTabBrowser.markupDocumentViewer; if (this.shouldRedraw) { + if (sv.mTabBrowser.hasAttribute(this.kTRANSPARENT) && + sv.mTabBrowser.getAttribute(this.kTRANSPARENT) != this.kTRANSPARENT_STYLE[this.kTRANSPARENT_NONE]) + this.drawBG(); + else + this.clearBG(); + v.move(window.outerWidth,window.outerHeight); v.move( ( @@ -555,16 +561,11 @@ TreeStyleTabBrowserAutoHide.prototype = { 0 ) ); - if (sv.mTabBrowser.hasAttribute(this.kTRANSPARENT) && - sv.mTabBrowser.getAttribute(this.kTRANSPARENT) != this.kTRANSPARENT_STYLE[this.kTRANSPARENT_NONE]) - this.drawBG(); - else - this.clearBG(); } else { + this.clearBG(); v.move(window.outerWidth,window.outerHeight); v.move(0,0); - this.clearBG(); } } catch(e) { @@ -582,6 +583,9 @@ TreeStyleTabBrowserAutoHide.prototype = { if (!this.tabbarCanvas || this.isResizing) return; + this.tabbarCanvas.style.width = (this.tabbarCanvas.width = 1)+'px'; + this.tabbarCanvas.style.height = (this.tabbarCanvas.height = 1)+'px'; + var pos = sv.mTabBrowser.getAttribute(sv.kTABBAR_POSITION); var frame = sv.mTabBrowser.contentWindow; @@ -996,7 +1000,10 @@ TreeStyleTabBrowserAutoHide.prototype = { { if ( !aEvent.originalTarget || - aEvent.originalTarget.ownerDocument != document || + ( + aEvent.originalTarget.ownerDocument != document && + aEvent.originalTarget != window + ) || !this.shouldRedraw ) { return;