mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3 windows] Fix resize bug when using setSize
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user