[Lazarus] Autosize behaviour
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Apr 5 02:58:50 CEST 2010
On Sun, 4 Apr 2010 19:21:00 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:
> Hi,
>
> In delphi, setting a panel's AutoSize property to 'true' and aligning it to a
> form edge, makes the panel disappear when the project is run.
> This is logical, because, if there are no controls on the panel,
> the needed size is zero.
Yes, and this is the problem. A visible control must not have the size
0,0. It makes no sense. This is bad in the designer. The gtk does not
like it.
Therefore the LCL ignores the child bounds if no childs are there.
> In Lazarus, the panel is still shown.
>
> Is this a known bug ?
A feature. You are the first asking. Do you need it?
Mattias
More information about the Lazarus
mailing list