cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
http://cefsharp.github.io/
Other
9.84k stars 2.92k forks source link

when i enable "ChromeRuntime", the ChromiumWebBrowser layouts incorrect #4777

Closed ijustkeepmoving closed 6 months ago

ijustkeepmoving commented 6 months ago

Is there an existing issue for this?

CefSharp Version

120.2.50

Operating System

Windows 10

Architecture

x64

.Net Version

CefSharp.Wpf.NETCore

Implementation

WPF

Reproduction Steps

hi~~ i am a newer to Cefsharp~~~

when i enable "settings.ChromeRuntime = true;" the position and size of browser is not working, it layouts on the top and left of the window with a fixed size~~~

when i set settings.ChromeRuntime = false; everything goes well

i have test the MinmalExample ,the result is the same with description above

i dont know why?

微信图片_20240405095629

Expected behavior

the position and size render correct~~

Actual behavior

the position and size is not working

Regression?

No response

Known Workarounds

No response

Does this problem also occur in the CEF Sample Application

Yes using WPF/OffScreen command line args

Other information

No response