mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 16:00:23 +02:00
fix #12871, also reduces number of overhead resize messages
git-svn-id: trunk@18091 -
This commit is contained in:
parent
89df8b61f5
commit
acff5b431f
@ -444,10 +444,12 @@ procedure TCarbonWidget.UpdateLCLClientRect;
|
||||
var
|
||||
R: TRect;
|
||||
begin
|
||||
GetBounds(R);
|
||||
|
||||
LCLObject.InvalidateClientRectCache(False);
|
||||
LCLSendSizeMsg(LCLObject, R.Right - R.Left, R.Bottom - R.Top, Size_SourceIsInterface);
|
||||
if not Resizing then
|
||||
begin
|
||||
GetBounds(R);
|
||||
LCLObject.InvalidateClientRectCache(False);
|
||||
LCLSendSizeMsg(LCLObject, R.Right - R.Left, R.Bottom - R.Top, Size_SourceIsInterface);
|
||||
end;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user