mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-01 16:29:30 +02:00
lcl: wincontrol: ignore FBoundsRealized in WM_SIZE if AutoSize is disabled. Solves part of issue #31715
git-svn-id: trunk@54811 -
This commit is contained in:
parent
ee8a7ab7a7
commit
9adb1436a5
@ -6968,10 +6968,13 @@ begin
|
|||||||
' wcfClientRectNeedsUpdate=',wcfClientRectNeedsUpdate in FWinControlFlags]);
|
' wcfClientRectNeedsUpdate=',wcfClientRectNeedsUpdate in FWinControlFlags]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
NewLeft := FBoundsRealized.Left;
|
if not AutoSizeDelayed then // FBoundsRealized are wrong if AutoSize is disabled
|
||||||
NewTop := FBoundsRealized.Top;
|
begin
|
||||||
if HandleAllocated then
|
NewLeft := FBoundsRealized.Left;
|
||||||
GetWindowRelativePosition(Handle, NewLeft, NewTop);
|
NewTop := FBoundsRealized.Top;
|
||||||
|
if HandleAllocated then
|
||||||
|
GetWindowRelativePosition(Handle, NewLeft, NewTop);
|
||||||
|
end;
|
||||||
//if CheckPosition(Self) then
|
//if CheckPosition(Self) then
|
||||||
//DebugLn(['TWinControl.WMSize GetWindowRelativePosition: ',DbgSName(Self),' ',NewLeft,',',NewTop,' ClientRectNeedsInterfaceUpdate=',ClientRectNeedsInterfaceUpdate]);
|
//DebugLn(['TWinControl.WMSize GetWindowRelativePosition: ',DbgSName(Self),' ',NewLeft,',',NewTop,' ClientRectNeedsInterfaceUpdate=',ClientRectNeedsInterfaceUpdate]);
|
||||||
NewBoundsRealized := Bounds(NewLeft, NewTop, Message.Width, Message.Height);
|
NewBoundsRealized := Bounds(NewLeft, NewTop, Message.Width, Message.Height);
|
||||||
|
Loading…
Reference in New Issue
Block a user