From 800ceed58c4e8d413e88cdfaacb1f3fc86222262 Mon Sep 17 00:00:00 2001 From: piro Date: Mon, 3 May 2010 12:36:46 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=9D=E3=83=83=E3=83=97=E3=82=A2=E3=83=83?= =?UTF-8?q?=E3=83=97=E3=81=AE=E5=B9=85=E3=81=A8=E9=AB=98=E3=81=95=E3=82=92?= =?UTF-8?q?=E3=82=AF=E3=83=AA=E3=82=A2=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=EF=BC=88=E3=83=84=E3=83=BC=E3=83=AB=E3=83=81=E3=83=83?= =?UTF-8?q?=E3=83=97=E7=AD=89=E3=81=AE=E5=A4=A7=E3=81=8D=E3=81=95=E3=81=8C?= =?UTF-8?q?=E6=84=8F=E5=9B=B3=E3=81=9B=E3=81=9A=E5=9B=BA=E5=AE=9A=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=81=B8=E3=81=AE=E5=AF=BE=E5=87=A6=EF=BC=89?= 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@6657 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/res/stopRendering.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/res/stopRendering.js b/content/treestyletab/res/stopRendering.js index 7bd945f6..2928ef74 100644 --- a/content/treestyletab/res/stopRendering.js +++ b/content/treestyletab/res/stopRendering.js @@ -12,7 +12,7 @@ http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/stopRendering.js */ (function() { - const currentRevision = 4; + const currentRevision = 5; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; @@ -62,8 +62,17 @@ if (aPopup.state != 'open') return; var w = aPopup.boxObject.width; var h = aPopup.boxObject.height; + var hasWidth = aPopup.hasAttribute('width'); + var hasHeight = aPopup.hasAttribute('height'); aPopup.sizeTo(w, h-1); aPopup.sizeTo(w, h); + if (!hasWidth || !hasHeight) + window.setTimeout(function() { + if (!hasWidth) + aPopup.removeAttribute('width'); + if (!hasHeight) + aPopup.removeAttribute('height'); + }, 0); }, this); },