lcl: wincontrol: revert r54811 #9adb1436a5

git-svn-id: trunk@54814 -
This commit is contained in:
ondrej 2017-05-05 21:32:44 +00:00
parent ede8a86d9d
commit c2b3d7f360

View File

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