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);