summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2020-09-01 17:39:09 +0200
committerAlexander Neumann <alexander.neumann@picos-software.com>2020-09-01 17:39:09 +0200
commit89c6a36fe8bb3679f4b7cadb42683dc8ff19131e (patch)
tree5833727cd645f9dee7fd62634ca62dbf7e466a92
parentExamples: Regenerate rsrc.syso files (diff)
downloadwireguard-windows-89c6a36fe8bb3679f4b7cadb42683dc8ff19131e.tar.xz
wireguard-windows-89c6a36fe8bb3679f4b7cadb42683dc8ff19131e.zip
FormBase: Regard standard ToolBar in bounds calculation
-rw-r--r--form.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/form.go b/form.go
index ac0214e3..a1970f0b 100644
--- a/form.go
+++ b/form.go
@@ -691,7 +691,9 @@ func (fb *FormBase) startLayout() bool {
fb.Invalidate()
}
- fb.clientComposite.SetBoundsPixels(Rectangle{Width: cs.Width, Height: cs.Height})
+ cbp := fb.window.ClientBoundsPixels()
+
+ fb.clientComposite.SetBoundsPixels(Rectangle{Y: cbp.Y, Width: cs.Width, Height: cs.Height})
cli := CreateLayoutItemsForContainer(fb)
cli.Geometry().ClientSize = cs