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.

Does not seem to work with flex layout

See original GitHub issue

Thanks 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:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
fredrik-sogaardcommented, May 14, 2016

I’m wondering the same. Any luck finding a solution, @pke ?

2reactions
mr-e-commented, Sep 24, 2016

same issue here:(

Read more comments on GitHub >

github_iconTop 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 >

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