fix #12871, also reduces number of overhead resize messages

git-svn-id: trunk@18091 -
This commit is contained in:
dmitry 2009-01-03 22:29:11 +00:00
parent 89df8b61f5
commit acff5b431f

View File

@ -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;
{------------------------------------------------------------------------------