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.




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.