起動直後にcanvasの領域が表示されてしまう問題を修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@2041 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-03-10 01:33:57 +00:00
parent dff025c01e
commit 6e219d6426

View File

@ -5,7 +5,7 @@
window.addEventListener('DOMContentLoaded', function() { window.addEventListener('DOMContentLoaded', function() {
window.removeEventListener('DOMContentLoaded', arguments.callee, true); window.removeEventListener('DOMContentLoaded', arguments.callee, true);
const currentRevision = 1; const currentRevision = 2;
var root = document.documentElement; var root = document.documentElement;
var loadedRevision = root.getAttribute('fullScreenCanvas'); var loadedRevision = root.getAttribute('fullScreenCanvas');
@ -130,6 +130,7 @@ window.addEventListener('DOMContentLoaded', function() {
init : function() { init : function() {
var canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas'); var canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas');
canvas.setAttribute('id', 'fullScreenCanvas-canvas'); canvas.setAttribute('id', 'fullScreenCanvas-canvas');
canvas.setAttribute('style', 'width:0;height:0;');
if (!this.isGecko19) { if (!this.isGecko19) {
this.container.appendChild(canvas); this.container.appendChild(canvas);
return return