W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

Re: [csswg-drafts] [css-grid-2] Grid Track Explicit Sizing Controls (aka Flex Sizing in Grid) (#4147)

From: Fred Wilkins via GitHub <sysbot+gh@w3.org>
Date: Tue, 30 Jul 2019 06:39:35 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-516285466-1564468774-sysbot+gh@w3.org>
This is worth considering, as our team has run into the same issue many times.  I found this while searching for possible improved solutions via google.   The current solution we have implemented is to use ResizeObserver to add and remove classes onto the grid that in turn change the widths of the separators.  This is not great since it can not take the sizing of the other columns into account.

Any potential solution just needs to be able to provide the developer with the ability to specify the order in which each section should collapse or expand.  The proposed solution above works but I would suggest the format should be  
```css
flex(flex-grow, flex-shrink, flex-basis, min-width, max-width)
``` 
Because in flexbox min-width and max-width are specified by separate css properties.


-- 
GitHub Notification of comment by TigTog-uiux
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4147#issuecomment-516285466 using your GitHub account
Received on Tuesday, 30 July 2019 06:39:38 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC