LCL: revert r51321 #251af8045a

git-svn-id: trunk@51333 -
This commit is contained in:
ondrej 2016-01-18 23:23:52 +00:00
parent 251af8045a
commit 0314da0e59

View File

@ -696,7 +696,6 @@ end;
procedure TCustomForm.WMSize(var message: TLMSize);
var
NewState: TWindowState;
NeedsAutoSize: Boolean;
begin
{$IFDEF CHECK_POSITION}
DebugLn(['[TCustomForm.WMSize] ',DbgSName(Self),' Message.SizeType=',Message.SizeType,' Message.Width=',Message.Width,' Message.Height=',Message.Height,' AutoSizeDelayed=',AutoSizeDelayed]);
@ -713,11 +712,6 @@ begin
end;
end;
NeedsAutoSize :=
(FWindowState = wsMinimized)
and ((Message.SizeType and SIZE_SourceIsInterface) <> 0)
and ((Message.SizeType xor SIZE_SourceIsInterface) <> SIZE_MINIMIZED);
inherited WMSize(Message);
if (Message.SizeType and not SIZE_SourceIsInterface) = SIZE_RESTORED then
@ -726,9 +720,6 @@ begin
FRestoredHeight := Height;
//DebugLn('[TCustomForm.WMSize] saving restored bounds ',DbgSName(Self),' ',dbgs(FRestoredWidth),'x',dbgs(FRestoredHeight));
end;
if NeedsAutoSize then
DoAllAutoSize;
end;
procedure TCustomForm.WMMove(var Message: TLMMove);