From c112f5754f2072a6d8cdcfe22b8eed7f4035e56c Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 2 Jul 2010 02:47:12 +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=E3=81=A7=E9=9A=A0=E3=81=99=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E3=81=AE=E3=81=A8=E3=81=8D=E3=80=81=E3=82=B3=E3=83=B3=E3=83=86?= =?UTF-8?q?=E3=83=B3=E3=83=84=E9=A0=98=E5=9F=9F=E3=81=AE=E6=8F=8F=E7=94=BB?= =?UTF-8?q?=E3=81=8C=E3=81=9A=E3=82=8C=E3=81=9F=E3=81=BE=E3=81=BE=E3=81=AB?= =?UTF-8?q?=E3=81=AA=E3=82=8B=E4=BA=8B=E3=81=8C=E3=81=82=E3=81=A3=E3=81=9F?= =?UTF-8?q?=E3=81=AE=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@6798 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser_autoHide.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser_autoHide.js b/content/treestyletab/treestyletabbrowser_autoHide.js index 9bc4387e..1dd0c7db 100644 --- a/content/treestyletab/treestyletabbrowser_autoHide.js +++ b/content/treestyletab/treestyletabbrowser_autoHide.js @@ -465,6 +465,7 @@ TreeStyleTabBrowserAutoHide.prototype = { if (this.expanded) { // to be hidden or shrunken this.onHiding(); this.showHideReason = aReason || this.kSHOWN_BY_UNKNOWN; + this.resetContentAreas(); } else { // to be shown or expanded this.onShowing(); @@ -637,6 +638,17 @@ TreeStyleTabBrowserAutoHide.prototype = { }, 0, this); }, + resetContentAreas : function TSTAutoHide_resetContentAreas() + { + this.mOwner.getTabsArray(this.mOwner.browser).forEach(function(aTab) { + try { + aTab.linkedBrowser.markupDocumentViewer.move(0, 0); + } + catch(e) { + } + }, this); + }, + get shouldRedraw() { return this.enabled && this.expanded;