mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 16:16:05 +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
|
||||
exit;
|
||||
|
||||
{ $IFDEF VerboseAllAutoSize}
|
||||
{$IFDEF VerboseAllAutoSize}
|
||||
DebugLn(['TWinControl.WMWindowPosChanged CHANGED BY INTF ',dbgsname(Self),' Message=',NewLeft,',',NewTop,',',NewWidth,'x',NewHeight,
|
||||
' BoundsRealized=',dbgs(FBoundsRealized),
|
||||
' wcfClientRectNeedsUpdate=',wcfClientRectNeedsUpdate in FWinControlFlags]);
|
||||
{ $ENDIF}
|
||||
{$ENDIF}
|
||||
|
||||
TopParent:=GetTopParent;
|
||||
if (TopParent is TWinControl)
|
||||
@ -7256,6 +7256,7 @@ begin
|
||||
Exclude(FWinControlFlags, wcfCreatingChildHandles);
|
||||
end;
|
||||
|
||||
InvalidatePreferredSize;
|
||||
if FControls<>nil then
|
||||
for i:=0 to FControls.Count-1 do
|
||||
TControl(FControls[i]).InvalidatePreferredSize;
|
||||
|
Loading…
Reference in New Issue
Block a user