layout grid grow & shrink params

Questions related to the Responsive Web Design tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/respon ... esign.html
Please read this first before posting any questions! Also check out the example project to get an idea how the RWD concept works.

Responsive Web Design FAQ:
http://wysiwygwebbuilder.com/forum/view ... 10&t=63817
Post Reply
alan_sh
 
 
Posts: 1681
Joined: Tue Jan 01, 2019 5:50 pm

layout grid grow & shrink params

Post 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
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: layout grid grow & shrink params

Post 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'.
alan_sh
 
 
Posts: 1681
Joined: Tue Jan 01, 2019 5:50 pm

Re: layout grid grow & shrink params

Post 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
alan_sh
 
 
Posts: 1681
Joined: Tue Jan 01, 2019 5:50 pm

Re: layout grid grow & shrink params

Post 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
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: layout grid grow & shrink params

Post by Pablo »

If you use layout grids, then I recommend to keep the default settings (flex-grow/flex-shrink= 0)
alan_sh
 
 
Posts: 1681
Joined: Tue Jan 01, 2019 5:50 pm

Re: layout grid grow & shrink params

Post by alan_sh »

Thanks. I'll check the ones I have used.
Post Reply