summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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