poll: what should be the default behavior for fxFlex?
See original GitHub issueThis issue tracks the possibility of changing the default behavior for the fxFlex
directive. Currently, the behavior is as follows:
- When the input is an integer, this defaults to a percentage value input for
fxFlex
- When the input is any other singular value, it’s interpreted as the intended
flex-basis
value and results inflex: 1 1 <input>
withmin-width
andmax-width
applied (assuming row format) - When the input is three values, it’s interpreted as a direct translation to the CSS
flex
property, withmin/max-width
applied according to the algorithm specified here - When the input is longer than three values, it is truncated to the first three values
I’ll list some alternative options for fxFlex
behavior below, please vote for your preferred option, or feel free to add your own. If you like the current behavior, please do not add comments, but simply vote for this comment.
Issue Analytics
- State:
- Created 5 years ago
- Comments:34 (18 by maintainers)
Top Results From Across the Web
Understanding fxFlex API in Angular flex layout
In this tutorial we will learn how to use fxFlex API in Angular flex ... In CSS, the flex-basis property specifies the initial...
Read more >Why is Angular Flex Layout defaulting to small window view?
The expected behaviour is for all 3 to appear on the same row for all windows except for mobile view, where it will...
Read more >How To Use Flex Layout for Angular - DigitalOcean
This code will set breakpoints at xs (extra small) screen sizes. It will change the layout from the default "row" to "column" and...
Read more >Angular Flex Layout: The Masquerade | by Aleix Suau - Medium
We can change this default order with the 'order' property of the items: ... the style sheet anymore to understand the responsive behavior...
Read more >Untitled
Roteiro de viagem america do sul, 4 pics 1 word television box, Theater newport, ... Jabberwock bravely default, Iobit uninstaller portable 2.1?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Option 5) The same as option 3 but the default min/max is
none
Alright @CaerusKaru, I have my app back in it’s original state… For some reason
fxLayout="column"
and a child offxFlex
, which as you’ve suggested gives it flex-basis ofauto
didn’t fill the parent for me. I also triedfxFlex="0%"
on those children and that worked for Chrome, but not Firefox. I instead left my code as is with simplefxFlex
and used the following scss to correct it (which goes back to the original hack). This seems to work for Chrome/Firefox/Safari, but I haven’t tried IE.