mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 10:39:20 +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
|
var
|
||||||
R: TRect;
|
R: TRect;
|
||||||
begin
|
begin
|
||||||
GetBounds(R);
|
if not Resizing then
|
||||||
|
begin
|
||||||
LCLObject.InvalidateClientRectCache(False);
|
GetBounds(R);
|
||||||
LCLSendSizeMsg(LCLObject, R.Right - R.Left, R.Bottom - R.Top, Size_SourceIsInterface);
|
LCLObject.InvalidateClientRectCache(False);
|
||||||
|
LCLSendSizeMsg(LCLObject, R.Right - R.Left, R.Bottom - R.Top, Size_SourceIsInterface);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user