Cocoa: fix the context setting in TCocoaReadOnlyComboBox(TComboBox)

This commit is contained in:
rich2014 2024-06-10 10:42:16 +08:00
parent 9c43c3f1d9
commit 531122b3b7

View File

@ -1634,6 +1634,7 @@ begin
dr := lclFrame;
Types.OffsetRect(dr, -dr.Left, -dr.Top);
SubLayoutFromFrame( lclGetFrameToLayoutDelta, dr);
ctx.InitDraw(dr.Width, dr.Height);
// magic offsets are based on the macOS 10.13.6 visual style
// but hard-coding is never reliable