mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Fixed issue with an extra 4px being added to the canvas elements because the display type wasn't set.
This commit is contained in:
parent
a5a503b02c
commit
226b7070a8
1 changed files with 4 additions and 4 deletions
|
@ -38,15 +38,15 @@ Phaser.Canvas = {
|
|||
var canvas = document.createElement('canvas');
|
||||
}
|
||||
|
||||
canvas.width = width;
|
||||
canvas.height = height;
|
||||
|
||||
if (typeof id === 'string' && id !== '')
|
||||
{
|
||||
canvas.id = id;
|
||||
canvas.style.display = 'block';
|
||||
}
|
||||
|
||||
canvas.width = width;
|
||||
canvas.height = height;
|
||||
canvas.style.display = 'block';
|
||||
|
||||
return canvas;
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue