enable autosizing at design time (fixes issue #1244)

git-svn-id: trunk@8060 -
This commit is contained in:
micha 2005-11-04 20:30:12 +00:00
parent 70601ab4a9
commit b30bc55540

View File

@ -711,7 +711,7 @@ function TWinControl.AutoSizeDelayed: boolean;
begin
Result:=// no handle means not visible
(not HandleAllocated)
or (not FShowing)
or ((not FShowing) and (not (csDesigning in ComponentState)))
// during handle creation no autosize
or (wcfCreatingChildHandles in FWinControlFlags)
or (inherited AutoSizeDelayed);