From c2b3d7f36086d57592dee1849e3f143544f705b6 Mon Sep 17 00:00:00 2001 From: ondrej Date: Fri, 5 May 2017 21:32:44 +0000 Subject: [PATCH] lcl: wincontrol: revert r54811 #9adb1436a5 git-svn-id: trunk@54814 - --- lcl/include/wincontrol.inc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lcl/include/wincontrol.inc b/lcl/include/wincontrol.inc index 357e6ffab8..a7b2a6a6be 100644 --- a/lcl/include/wincontrol.inc +++ b/lcl/include/wincontrol.inc @@ -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; + 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);