Does not seem to work with flex layout
See original GitHub issueThanks for the component! I’d like to use them in my flexbox based app. All my divs are styled as relative and with flex layout
div, span {
box-sizing: border-box;
position: relative;
border: 0 solid black;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
flex-shrink: 0;
}
And this is my markup that renders the children
<div style={{height:"100vh", width: "100vw"}}>
<div style={STYLES.appbar}></div>
<div style={STYLES.content}>
{children}
</div>
<NavBar style={STYLES.navbar}/>
</div>
const STYLES = {
appbar: {
flex: "none"
},
content: {
flex: 1
},
navbar: {
flex: "none"
},
}
Wrapping children
into ReactRouterTransition
displays the old content for a moment together with the new content but then the new content jumps up to the page start (when the previous page has been removed).
Any ideas how to get this Component to work with flexbox?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Angular Flex Layout - Not working - Stack Overflow
According to my solution, directive name are changed to fx + PascalCase . Example layout -> fxLayout flex -> fxFlex flex-order -> fxFlexOrder ......
Read more >angular/flex-layout - Gitter
I am having a slight problem using the flex-layout in conjunction with material2. I have a library project of my own that is...
Read more >Ordering flex items - CSS: Cascading Style Sheets | MDN
Using order changes the order in which items are painted, and the order in which they appear visually. It does not change the...
Read more >The Alternative Layout Library for Flex-box and CSS Grid | by ...
If you've been looking for an alternative way to write Flexbox or CSS Grid, then Angular's Flex-Layout might just be the library for...
Read more >Getting started with Angular Flex-Layout - Excellarate
In this post, we take a look at getting started with Flex Layouts in ... In this post, I will show how to...
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
I’m wondering the same. Any luck finding a solution, @pke ?
same issue here:(