mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-25 22:15:55 +02:00
Cocoa: fix the context setting in TCocoaReadOnlyComboBox(TComboBox)
This commit is contained in:
parent
91259b6af5
commit
04c15dace4
@ -1634,6 +1634,7 @@ begin
|
|||||||
dr := lclFrame;
|
dr := lclFrame;
|
||||||
Types.OffsetRect(dr, -dr.Left, -dr.Top);
|
Types.OffsetRect(dr, -dr.Left, -dr.Top);
|
||||||
SubLayoutFromFrame( lclGetFrameToLayoutDelta, dr);
|
SubLayoutFromFrame( lclGetFrameToLayoutDelta, dr);
|
||||||
|
ctx.InitDraw(dr.Width, dr.Height);
|
||||||
|
|
||||||
// magic offsets are based on the macOS 10.13.6 visual style
|
// magic offsets are based on the macOS 10.13.6 visual style
|
||||||
// but hard-coding is never reliable
|
// but hard-coding is never reliable
|
||||||
|
Loading…
Reference in New Issue
Block a user