[v3 windows] Fix resize bug when using setSize

This commit is contained in:
Lea Anthony
2023-06-05 20:33:45 +10:00
parent 04d5842124
commit bb28bdf565
@@ -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) {