mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 13:37:22 +01:00
cocoa: adjusting size of TGroupBox to match layout rectangle
git-svn-id: trunk@58983 -
This commit is contained in:
parent
49c4dbe3c8
commit
e2793c4874
@ -249,6 +249,7 @@ type
|
||||
function lclIsHandle: Boolean; override;
|
||||
function lclClientFrame: TRect; override;
|
||||
function lclContentView: NSView; override;
|
||||
function lclGetFrameToLayoutDelta: TRect; override;
|
||||
end;
|
||||
|
||||
|
||||
@ -432,6 +433,14 @@ begin
|
||||
Result := NSView(contentView);
|
||||
end;
|
||||
|
||||
function TCocoaGroupBox.lclGetFrameToLayoutDelta: TRect;
|
||||
begin
|
||||
Result.Left := 3;
|
||||
Result.Right := -3;
|
||||
Result.Top := 0;
|
||||
Result.Bottom := -4;
|
||||
end;
|
||||
|
||||
function TCocoaGroupBox.acceptsFirstResponder: Boolean;
|
||||
begin
|
||||
Result := True;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user