mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 10:38:22 +02:00
cocoa: fix formatting
git-svn-id: trunk@43667 -
This commit is contained in:
parent
03651e2cfd
commit
6617df26ff
@ -807,11 +807,11 @@ begin
|
||||
NewBounds.Top, Move_SourceIsInterface);
|
||||
end;
|
||||
|
||||
if not FBoundsReportedToChildren then // first time we need this to update non cocoa based client rects
|
||||
begin
|
||||
Target.InvalidateClientRectCache(true);
|
||||
FBoundsReportedToChildren:=true;
|
||||
end;
|
||||
if not FBoundsReportedToChildren then // first time we need this to update non cocoa based client rects
|
||||
begin
|
||||
Target.InvalidateClientRectCache(true);
|
||||
FBoundsReportedToChildren:=true;
|
||||
end;
|
||||
|
||||
end;
|
||||
|
||||
|
@ -554,11 +554,11 @@ class procedure TCocoaWSCustomForm.SetBounds(const AWinControl: TWinControl;
|
||||
const ALeft, ATop, AWidth, AHeight: Integer);
|
||||
begin
|
||||
if AWinControl.HandleAllocated then
|
||||
begin
|
||||
//debugln('TCocoaWSCustomForm.SetBounds: '+AWinControl.Name+'Bounds='+dbgs(Bounds(ALeft, ATop, AWidth, AHeight)));
|
||||
NSObject(AWinControl.Handle).lclSetFrame(Bounds(ALeft, ATop, AWidth, AHeight));
|
||||
TCocoaWindowContent(AwinControl.Handle).callback.boundsDidChange;
|
||||
end;
|
||||
begin
|
||||
//debugln('TCocoaWSCustomForm.SetBounds: '+AWinControl.Name+'Bounds='+dbgs(Bounds(ALeft, ATop, AWidth, AHeight)));
|
||||
NSObject(AWinControl.Handle).lclSetFrame(Bounds(ALeft, ATop, AWidth, AHeight));
|
||||
TCocoaWindowContent(AwinControl.Handle).callback.boundsDidChange;
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user