[Lazarus] Dynamic layout. Behavior of anchor + BorderSpacing

Luiz Americo Pereira Camara luizmed at oi.com.br
Wed Nov 9 00:40:50 CET 2011

On 7/11/2011 22:48, silvioprog wrote:
> 2011/11/7 Luiz Americo Pereira Camara<luizmed at oi.com.br>:
>> The problem is with the button:
>> - I set the button.Top anchor to match the bottom side of TListView but it
>> uses the original ListView bottom side instead of the effective bottom
>> (considering BorderSpacing). The result is that the button gets out of the
>> screen.
>> Is that the expected behavior (ignoring BorderSpacing to calculate anchor
>> sides)?
>> Any idea how i can get the layout without using layers of TPanel?
>> Follows a test project
>> Luiz
> 'Improvised' solution in attached.

Thanks. This works.

But the question still remains:

Is a bug the BorderSpacing be ignored to calculate anchor sides?



More information about the Lazarus mailing list