mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
[v3 windows] Fix resize bug when using setSize
This commit is contained in:
parent
04d5842124
commit
bb28bdf565
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue