mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 19:09:19 +02:00
added UpdateShowing and reduced autosizing during handle creation
git-svn-id: trunk@8321 -
This commit is contained in:
parent
a57029a349
commit
7fc727d17a
@ -4820,12 +4820,18 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
// size this control
|
// size this control
|
||||||
AdjustSize;
|
DisableAlign;
|
||||||
if FControls<>nil then
|
try
|
||||||
for i:=0 to FControls.Count-1 do
|
UpdateShowing;
|
||||||
TControl(FControls[i]).DoAutoSize;
|
AdjustSize;
|
||||||
// realign childs
|
if FControls<>nil then
|
||||||
ReAlign;
|
for i:=0 to FControls.Count-1 do
|
||||||
|
TControl(FControls[i]).DoAutoSize;
|
||||||
|
// realign childs
|
||||||
|
ReAlign;
|
||||||
|
finally
|
||||||
|
EnableAlign;
|
||||||
|
end;
|
||||||
|
|
||||||
//DebugLn('[TWinControl.CreateWnd] END ',Name,':',Classname);
|
//DebugLn('[TWinControl.CreateWnd] END ',Name,':',Classname);
|
||||||
//WriteClientRect('D');
|
//WriteClientRect('D');
|
||||||
|
Loading…
Reference in New Issue
Block a user