Set browser screen resolution #3463
Unanswered
oleksiivasylenko
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Are you trying to emulate a different screen resolution? You should be able to do that using DevTools https://chromedevtools.github.io/devtools-protocol/tot/Emulation/#method-setDeviceMetricsOverride You can directly use DevTools protocol see #3165 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
SETUP:
windows 10, c#, winforms app. Net 4.7.2
I am trying to set browser screen resolution.
I've tried to change Size property of browser as well as the size of browser(control size).
Tried to set maxWidth of winform and tried to set via cef settings
chromeSettings.CefCommandLineArgs.Add("window-size", "800,600");
or
chromeSettings.CefCommandLineArgs.Add("window-height", "800");
and nothing helped, I always see my resolution which was before settings.
To check resolution I used website.
If somebody knows how to do it, I will be really tanksful!
Beta Was this translation helpful? Give feedback.
All reactions