SteveSandersonMS / WebWindow

.NET Core library to open native OS windows containing web UI on Windows, Mac, and Linux. Experimental.
Apache License 2.0
1.98k stars 215 forks source link

Suggestion: Window resize event on monitor change #37

Closed sondreb closed 4 years ago

sondreb commented 4 years ago

Moving the window from one screen to another with a different DPI, won't resize the app. A quick resize of the window and the app resizes (font-size, etc.).

Perhaps the WebWindow should auto-trigger a single resize event (or similar to cause re-render) when it notices a movement from one screen to another?

SteveSandersonMS commented 4 years ago

I'd be happy to consider a PR for this. Please feel free to submit one if this is an important scenario in your case.

TBH I'm surprised this isn't handled by the native web view control, so if you're reporting this regarding Windows, maybe it would be better reported as an issue to the WebView2 maintainers.