blckngm / webview2

Rust bindings for WebView2
MIT License
73 stars 12 forks source link

window.resizeTo in webview ! #1

Closed IllusionPerdu closed 4 years ago

IllusionPerdu commented 4 years ago

Hello

When we execute window.resizeTo(width, height) in the webview the main window does not change size (with the example).

blckngm commented 4 years ago

You need to resize the window in rust (set_inner_size if you use winit, or SetWindowPos).

blckngm commented 4 years ago

I don't think there's anything I can do about this. And the workaround is simple and straightforward. So I'm going to close this issue.