LCL: TWinControl: Fix for WMSize loop on minimizing a autosized form. Issue #30826

git-svn-id: trunk@53721 -
This commit is contained in:
michl 2016-12-18 19:19:32 +00:00
parent 4e1a196334
commit 365e66afe4

View File

@ -7013,7 +7013,8 @@ begin
SetBounds(NewLeft, NewTop, Message.Width, Message.Height);
//if CheckPosition(Self) then
//debugln(['TWinControl.WMSize ',DbgSName(Self),' ClientRectNeedsInterfaceUpdate=',ClientRectNeedsInterfaceUpdate]);
if ((Message.SizeType and Size_SourceIsInterface) > 0) and ClientRectNeedsInterfaceUpdate then
if ((Message.SizeType and Size_SourceIsInterface) > 0) and ((Message.SizeType and SIZE_MINIMIZED) = 0)
and ClientRectNeedsInterfaceUpdate then
DoAdjustClientRectChange;
{$IFDEF VerboseClientRectBugFix}
{$IFDEF CHECK_POSITION}