GroupBox.Height <> GroupBox.ClientHeight
Child control's top coordinate is relative to GroupBox's client area, not to its absolute top.
This excludes GroupBox's border with caption, so you must make it bigger.
Size of the border depends on widget and theme settings.
Is Delphi this works differently, there child's top is relative to GroupBox's absolute top.
Juha