Skip to content

[Problem/Bug]: RasterizationScale is always reported as 1.0 and only later gets updated with correct value #5329

@barzuk1

Description

@barzuk1

What happened?

RasterizationScale is initially reported as 1.0 while it should be larger value (both monitor scaling and text size are > 100%) and only later at some point gets updated with correct value.
I'm aware that I can add event handler to register for rasterization scale changes, however I need to get the correct value on loading because the parent window I'm using to host WebView controller is fixed size with dpi/text scaling adjustments.

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

138.0.3351.109

SDK Version

1.0.1462.37

Framework

Win32

Operating System

Windows 10

OS Version

10.0.19045

Repro steps

Create simple webview2 C++ application like in the getting started samples.
Call ICoreWebView2Controller3::get_RasterizationScale once the WebView controller is created successfully.
Rasterization scale always returned as 1.0 after controller created regardless of real value.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions