mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 04:02:11 +02:00
lcl: wincontrol: revert r54811 #9adb1436a5
git-svn-id: trunk@54814 -
This commit is contained in:
parent
ede8a86d9d
commit
c2b3d7f360
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user