go-webview2 icon indicating copy to clipboard operation
go-webview2 copied to clipboard

When the third parameter of the SetSize method is webview2.HintNone, a black block briefly appears when the window starts.

Open Autumn-one opened this issue 6 months ago • 0 comments

I use the following code in my program:

w := webview2.New(true)
w.SetSize(800, 600, webview2.HintNone)

I found that the final built application experiences a momentary window size adjustment during initial startup, causing black blocks to appear. I recorded this process using screen recording software and took screenshots of the key frames to demonstrate it.

Image

Image

Image

Image

After my testing, if the last parameter of SetSize is set to webview2.HintMin, this issue does not occur. However, when resizing the window, black blocks always appear at the edges of the window.

Autumn-one avatar May 27 '25 07:05 Autumn-one