Firefox 2でのちらつきを軽減

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@2006 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-03-08 18:01:50 +00:00
parent faac493e74
commit 8c04990fd0

View File

@ -30,6 +30,8 @@ window.addEventListener('DOMContentLoaded', function() {
var h = window.innerHeight;
canvas.style.width = (canvas.width = w)+'px';
canvas.style.height = (canvas.height = h)+'px';
canvas.style.top = canvas.style.left = 0;
canvas.style.zIndex = 65000;
var frame = this.frame;
if (frame) {
frame.style.width = canvas.style.width;
@ -85,6 +87,7 @@ window.addEventListener('DOMContentLoaded', function() {
ctx.restore();
});
canvas.style.position = 'fixed';
this.container.removeAttribute('collapsed');
}
catch(e) {
@ -94,6 +97,7 @@ window.addEventListener('DOMContentLoaded', function() {
hide : function()
{
this.canvas.style.position = 'static';
this.container.setAttribute('collapsed', true);
},