jchv / go-webview2

WebView2 bindings for pure Go, without CGo, based on the webview/webview bindings.
Other
264 stars 64 forks source link

Resizing window #45

Closed hajsf closed 2 years ago

hajsf commented 2 years ago

Is there an option to allow or an allow windows resizing?

jchv commented 2 years ago

I am probably far too late for this to be helpful, but for future reference, this can be done using the hints parameter to SetSize. Specifically, call it and pass HintNone to set the window size and allow the window to be resized. Call it again with HintMin and HintMax to define the minimum and maximum window sizes, if desired.