mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-06 14:05:58 +02:00
cocoa: sending change bounds notification on direct setBounds call, to update LCL bounds (boundsrect and clientsrect) information. #33172
git-svn-id: trunk@57615 -
This commit is contained in:
parent
535304ef18
commit
ea840fc089
@ -1472,6 +1472,8 @@ end;
|
||||
|
||||
class procedure TCocoaWSWinControl.SetBounds(const AWinControl: TWinControl;
|
||||
const ALeft, ATop, AWidth, AHeight: Integer);
|
||||
var
|
||||
cb : ICommonCallBack;
|
||||
begin
|
||||
if AWinControl.HandleAllocated then
|
||||
begin
|
||||
@ -1480,6 +1482,9 @@ begin
|
||||
[AWinControl.Name, dbgs(Bounds(ALeft, ATop, AWidth, AHeight))]));
|
||||
{$ENDIF}
|
||||
NSObject(AWinControl.Handle).lclSetFrame(Bounds(ALeft, ATop, AWidth, AHeight));
|
||||
|
||||
cb := NSObject(AWinControl.Handle).lclGetCallback;
|
||||
if Assigned(cb) then cb.boundsDidChange(nil);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user