lcl: customform: revert r53334 #0a383ad832, issue #31122

git-svn-id: trunk@53716 -
This commit is contained in:
ondrej 2016-12-18 12:22:07 +00:00
parent bc7f03b15a
commit 8d6fb55c21

View File

@ -2341,10 +2341,7 @@ end;
------------------------------------------------------------------------------}
function TCustomForm.AutoSizeDelayedHandle: Boolean;
begin
if WindowState=wsMinimized then
// this form is minimized => no valid width/height, see bug 30826
Result:=true
else if (Parent<>nil) or (ParentWindow<>0) then
if (Parent<>nil) or (ParentWindow<>0) then
// this form is inlined / embedded it works like a normal TWinControl
Result:=inherited AutoSizeDelayedHandle
else