From 26038c2ac111a5b67aab390aa3c8f769b914e98f Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 16 Aug 2024 23:57:50 +0900 Subject: [PATCH] internal/ui: bug fix: an unexpected scroll bar was shown Closes #3066 --- internal/ui/ui_js.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index f3c90da44..f9b4a6f2a 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -512,6 +512,7 @@ func (u *UserInterface) init() error { canvasStyle.Set("height", "100%") canvasStyle.Set("margin", "0") canvasStyle.Set("padding", "0") + canvasStyle.Set("display", "block") // Make the canvas focusable. canvas.Call("setAttribute", "tabindex", 1)