Skip to content

The WebView2APISample program sometimes fails to restore the visibility of the webview correctly. #221

Open
@yzy

Description

@yzy

Description:
When the sample application window is minimized after being maximized, the bug will reoccur. At this point, if you click on the taskbar icon or switch windows to restore the window to the foreground, the webview will still be invisible unless the window is restored from the maximized state.

Reason:
There is an error in the handling branch of the WM_SIZE message in the ViewComponent::HandleWindowMessage method. The related code only checks for the SIZE_RESTORED message, but in the scenario described above, the window will receive a SIZE_MAXIMIZED message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions