[Lazarus] Autosize behaviour

Hans-Peter Diettrich DrDiettrich1 at aol.com
Mon Apr 5 10:57:41 CEST 2010


Mattias Gaertner schrieb:

>> 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.

Please keep initially invisible DockSites working, which expand when a 
control is docked into them. See the ElasticSite demo.

DoDi





More information about the Lazarus mailing list