[Lazarus] Dynamic layout. Behavior of anchor + BorderSpacing
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Nov 9 08:11:17 CET 2011
On Tue, 08 Nov 2011 20:40:50 -0300
Luiz Americo Pereira Camara <luizmed at oi.com.br> wrote:
> 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?
BorderSpacing is used by anchored sides.
See here:
http://wiki.lazarus.freepascal.org/Autosize_/_Layout#Anchor_Sides
Mattias
More information about the Lazarus
mailing list