On Fri, 18 Dec 2020 22:27:27 +0100
Stefan Hundhammer <[email protected]> wrote:

> On 2020-12-17 22:49, josef Reidinger wrote:
> > To get nice box centered at middle of screen, but content in box left
> > aligned use
> > HBox(
> >   HStretch,
> >   VBox(
> >     VStretch,
> >     Left(<content>),
> >     VStretch
> >   ),
> >   HStretch
> > )  
> 
> This is really just an overly complex way of writing
> 
> HVCenter( Left( content ) )
> 
> because
> 
>    HBox(
>      HStretch(),
>      content,
>      HStretch()
>    )
> 
> is the same as
> 
>    HCenter( content )
> 
> and it's the same in the other dimension, i.e.
>    VBox( VStretch(), content, VStretch() )
> 

Hi,
thanks for hint.
I try it now as I have another change in installation proposal where I need 
same layout and found that HVCenter does not work at all. see [1].
Also I found another cave-eat. Each element has to have own Left as 
Left(VBox()) does not work as expected. See mentioned PR for final solution 
that produce layout I want.

Josef

[1] https://github.com/yast/yast-firewall/pull/144#issuecomment-778116640


> 
> <snip>
> 
> 
> Kind regards
> + Merry Christmas, everyone!

Reply via email to