[v3 windows] Fix resize bug when using setSize

This commit is contained in:
Lea Anthony 2023-06-05 20:33:45 +10:00
commit bb28bdf565
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405

View file

@ -57,6 +57,7 @@ func (w *windowsWebviewWindow) setSize(width, height int) {
rect := w32.GetWindowRect(w.hwnd)
width, height = w.scaleWithWindowDPI(width, height)
w32.MoveWindow(w.hwnd, int(rect.Left), int(rect.Top), width, height, true)
w.chromium.Resize()
}
func (w *windowsWebviewWindow) setAlwaysOnTop(alwaysOnTop bool) {