question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The value of flex can mean different things

See original GitHub issue

I didn’t know this before, but apparently you can set flex to 30px and it will only set flex-basis, you can also set it to 1 30px, which sets flex-grow and flex-basis while skipping flex-shrink.

It looks like we have more work to do 😔

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
silvenoncommented, Feb 2, 2016

Nice catch, you could perhaps raise an issue in DevTools.

0reactions
mgolcommented, Feb 2, 2016

Ah, you’re right. I got confused because Chrome Dev Tools seem to show it all incorrectly: This is the styles pane (I expanded the flex: 40px rule, Chrome should show to what it expands): screen shot 2016-02-02 at 16 44 11

And this is what I get in the console for this element: screen shot 2016-02-02 at 16 44 07

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic concepts of flexbox - CSS: Cascading Style Sheets | MDN
As with flex-grow , different values can be assigned in order to cause one item to shrink faster than others — an item...
Read more >
What does flex: 1 mean? - Stack Overflow
flex: 1 means the following: flex-grow : 1; ➜ The div will grow in same proportion as the window-size flex-shrink : 1; ➜...
Read more >
flex - CSS-Tricks
The flex property is a sub-property of the Flexible Box Layout module. This is the shorthand for flex-grow , flex-shrink and flex-basis ....
Read more >
Flex Item Properties - CSS Mine
flex – Overall Item Flexibility · flex-grow: 0 - the item will not expand to fill free space. · flex-shrink: 1 - it...
Read more >
Flex Cheatsheet
The defining aspect of flex layout is the ability to make the flex items “flex”, altering their width/height to fill the available space...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found