From ad3b0a61ed907c45b39d40ec0ff6064c76209f52 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 30 Apr 2009 10:02:26 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9=E3=83=AA?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= 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@4290 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/res/fullScreenCanvas.xul | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/res/fullScreenCanvas.xul b/content/treestyletab/res/fullScreenCanvas.xul index 879bca9d..cfbe58d1 100644 --- a/content/treestyletab/res/fullScreenCanvas.xul +++ b/content/treestyletab/res/fullScreenCanvas.xul @@ -19,7 +19,7 @@ window.addEventListener('DOMContentLoaded', function() { window.removeEventListener('DOMContentLoaded', arguments.callee, true); - const currentRevision = 7; + const currentRevision = 8; var root = document.documentElement; var loadedRevision = root.getAttribute('fullScreenCanvas'); @@ -37,6 +37,9 @@ window.addEventListener('DOMContentLoaded', function() { window.fullScreenCanvas = { show : function(aTargetElement) { + if (this.shown) return; + this.shown = true; + var color = '-moz-field'; var canvas = this.canvas; if (!canvas) return; @@ -142,6 +145,7 @@ window.addEventListener('DOMContentLoaded', function() { this.container.setAttribute('collapsed', true); } }, + shown : false, getZoomForFrame : function(aFrame) { @@ -165,12 +169,14 @@ window.addEventListener('DOMContentLoaded', function() { return 1; }, - hide : function() + hide : function() { + if (!this.shown) return; var canvas = this.canvas; canvas.style.position = 'static'; canvas.style.width = canvas.style.height = canvas.style.zIndex = 0; this.container.setAttribute('collapsed', true); + this.shown = false; }, get browsers()