internal/ui: bug fix: an unexpected scroll bar was shown

Closes #3066
This commit is contained in:
Hajime Hoshi 2024-08-16 23:57:50 +09:00
parent 949d6abe6f
commit 26038c2ac1

View File

@ -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)