mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
949d6abe6f
commit
26038c2ac1
@ -512,6 +512,7 @@ func (u *UserInterface) init() error {
|
|||||||
canvasStyle.Set("height", "100%")
|
canvasStyle.Set("height", "100%")
|
||||||
canvasStyle.Set("margin", "0")
|
canvasStyle.Set("margin", "0")
|
||||||
canvasStyle.Set("padding", "0")
|
canvasStyle.Set("padding", "0")
|
||||||
|
canvasStyle.Set("display", "block")
|
||||||
|
|
||||||
// Make the canvas focusable.
|
// Make the canvas focusable.
|
||||||
canvas.Call("setAttribute", "tabindex", 1)
|
canvas.Call("setAttribute", "tabindex", 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user