Page 1 of 1

layout grid grow & shrink params

Posted: Mon Oct 18, 2021 12:41 pm
by alan_sh
I have noticed that, with a layout grid, I have to set the flexgrow and flexshrink to zero if there is only one cell (with either text or a menu in) but have to set these two parameters to a one if there are multiple cells in there (each with something in with flexgrow and flex shrink set to one).

If I don't do this, the results are not what I expect (menus are all over the place, for example).

Why is this? I'm just curious - I know what I need to do to make it work.

cheers

Alan

Re: layout grid grow & shrink params

Posted: Mon Oct 18, 2021 1:16 pm
by Pablo
The flexbox properties only apply to flexbox container and flexgrid, not to layout grids.
If you use them in a layout grid then the results will be 'undefined'.

Re: layout grid grow & shrink params

Posted: Mon Oct 18, 2021 2:17 pm
by alan_sh
OK - thanks. I'll continue playing around and see what "undefined" results I get.

Fun times. I enjoy learning new stuff.

Alan

Re: layout grid grow & shrink params

Posted: Mon Oct 18, 2021 2:21 pm
by alan_sh
So, all flexboxes should be set to 0 and 0 for the grow and shrink parameters.

What I have done is set any text or buttons inside the flex box cells to 1 and 1. Is that the right way to do things?

Alan

Re: layout grid grow & shrink params

Posted: Mon Oct 18, 2021 2:23 pm
by Pablo
If you use layout grids, then I recommend to keep the default settings (flex-grow/flex-shrink= 0)

Re: layout grid grow & shrink params

Posted: Mon Oct 18, 2021 2:53 pm
by alan_sh
Thanks. I'll check the ones I have used.