Skip to content

Browser viewport size becomes 14x14 when form minimized #5142

@n303ef

Description

@n303ef

Is there an existing issue for this?

  • I have searched both open/closed issues, no issue already exists.

CefSharp Version

138.0.170

Operating System

Windows 11

Architecture

x64

.Net Version

.Net 4.7.2

Implementation

WinForms

Reproduction Steps

  1. Open URL https://www.part987.com/en/standard/
  2. Wait for website loading finished - it should look like normal desktop website
  3. Minimize window

Expected behavior

Website should remains unchanged

Actual behavior

Website immediately changes to mobile version

Regression?

No response

Known Workarounds

This website tracks viewport size and redirects to mobile version as soon as width becomes small enough (about 400px and less). This is how we can check that viewport size has changed. I guess it becomes 1x1 or 0x0, but I can't confirm that.
It happens on window minimize, not on restore.

Does this problem also occur in the CEF Sample Application

No

Other information

Cefclient - works fine
CefSharp minimal application - problem exists

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