Firefox 2でのちらつきを軽減
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@2006 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
faac493e74
commit
8c04990fd0
@ -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);
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user