mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 13:19:21 +02:00
LCL: revert r51321 #251af8045a
git-svn-id: trunk@51333 -
This commit is contained in:
parent
251af8045a
commit
0314da0e59
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user