mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 10:09:14 +02:00
LCL: invalidatepreferredsize for self in CreateWnd
git-svn-id: trunk@26869 -
This commit is contained in:
parent
3d89257182
commit
f62c482f58
@ -6820,11 +6820,11 @@ begin
|
|||||||
and (not (wcfClientRectNeedsUpdate in FWinControlFlags)) then
|
and (not (wcfClientRectNeedsUpdate in FWinControlFlags)) then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
{ $IFDEF VerboseAllAutoSize}
|
{$IFDEF VerboseAllAutoSize}
|
||||||
DebugLn(['TWinControl.WMWindowPosChanged CHANGED BY INTF ',dbgsname(Self),' Message=',NewLeft,',',NewTop,',',NewWidth,'x',NewHeight,
|
DebugLn(['TWinControl.WMWindowPosChanged CHANGED BY INTF ',dbgsname(Self),' Message=',NewLeft,',',NewTop,',',NewWidth,'x',NewHeight,
|
||||||
' BoundsRealized=',dbgs(FBoundsRealized),
|
' BoundsRealized=',dbgs(FBoundsRealized),
|
||||||
' wcfClientRectNeedsUpdate=',wcfClientRectNeedsUpdate in FWinControlFlags]);
|
' wcfClientRectNeedsUpdate=',wcfClientRectNeedsUpdate in FWinControlFlags]);
|
||||||
{ $ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
TopParent:=GetTopParent;
|
TopParent:=GetTopParent;
|
||||||
if (TopParent is TWinControl)
|
if (TopParent is TWinControl)
|
||||||
@ -7256,6 +7256,7 @@ begin
|
|||||||
Exclude(FWinControlFlags, wcfCreatingChildHandles);
|
Exclude(FWinControlFlags, wcfCreatingChildHandles);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
InvalidatePreferredSize;
|
||||||
if FControls<>nil then
|
if FControls<>nil then
|
||||||
for i:=0 to FControls.Count-1 do
|
for i:=0 to FControls.Count-1 do
|
||||||
TControl(FControls[i]).InvalidatePreferredSize;
|
TControl(FControls[i]).InvalidatePreferredSize;
|
||||||
|
Loading…
Reference in New Issue
Block a user