lcl: wincontrol: ignore FBoundsRealized in WM_SIZE. Solves part of issue #31715

git-svn-id: trunk@54815 -
This commit is contained in:
ondrej 2017-05-05 22:36:12 +00:00
parent c2b3d7f360
commit 118cfb3d98

View File

@ -6968,10 +6968,6 @@ begin
' wcfClientRectNeedsUpdate=',wcfClientRectNeedsUpdate in FWinControlFlags]);
{$ENDIF}
NewLeft := FBoundsRealized.Left;
NewTop := FBoundsRealized.Top;
if HandleAllocated then
GetWindowRelativePosition(Handle, NewLeft, NewTop);
//if CheckPosition(Self) then
//DebugLn(['TWinControl.WMSize GetWindowRelativePosition: ',DbgSName(Self),' ',NewLeft,',',NewTop,' ClientRectNeedsInterfaceUpdate=',ClientRectNeedsInterfaceUpdate]);
NewBoundsRealized := Bounds(NewLeft, NewTop, Message.Width, Message.Height);