Skip to content

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

@Autumn-one

Description

@Autumn-one

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions