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.

fxFlexFill not working on versions 5.0.0-beta.14 and 6.0.0-beta.15

See original GitHub issue

I recently upgraded to angular v6 and then updated to Flex Layout 6.0.0 beta 15 and child layouts with fxFlexFill are not expanding to fill the parent width and height. I then downgraded to v5.0.0-beta.14 and had the same problem, I had to downgrade to 5.0.0-beta.13 to get it working again.

This is my html layout file:

<div class="app-container" fxFlex="100" fxLayout="column">
  <div fxFlexFill fxLayout="row">
    <mat-sidenav-container fxLayout="row" fxFlex="100">
      <mat-sidenav #mainSidebar class="sidebar mat-elevation-z1" fxFlex="300px" [mode]="mode" [opened]="sideNavOpened">
        <app-side-nav-bar (closeSidnav)="closeSidenav()"></app-side-nav-bar>
      </mat-sidenav>
      <mat-sidenav-content fxLayout="column" fxFlex="100">
        <div fxFlexFill fxLayout="column" fxFlex="100">
          <app-nav-bar [sideNavtoOpen]="mainSidebar"></app-nav-bar>
          <div fxFlexFill fxLayout="column" fxFlex="100" class="p-2">
            <router-outlet></router-outlet>
          </div>
        </div>
      </mat-sidenav-content>
    </mat-sidenav-container>
  </div>
</div>

The app-container class is set to min-height: 100vh to allow the child layouts to expand fill both the height and width.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
CaerusKarucommented, May 11, 2018

This will be resolved in the next beta release (in both 5.x and 6.x) some time early next week. The only decision that needs to be made is whether or not to fully revert back to the 1e-09px hack for fxFlex, or to add it as configuration. Please note this only happens in column mode, although that’s generally when fxFill is used, so I understand the importance of this.

3reactions
CaerusKarucommented, May 11, 2018

The workaround in the meantime is to explicitly set fxFlex to 0px on the div that wraps the subheader (in the StackBlitz example provided).

Read more comments on GitHub >

github_iconTop Results From Across the Web

FxFill doesn't work as expected with 5.0.0-beta.14 update
After updating @angular/flex-layout to the most recent 5.0.0-beta.14 version, the fxFill API no longer works as expected.
Read more >
https://raw.githubusercontent.com/angular/flex-lay...
[14.0.0-beta.41](https://github.com/angular/flex-layout/compare/14.0.0-beta. ... compatibility issues for the next version of the Angular rendering engine, ...
Read more >
@angular/flex-layout - npm
Latest version: 14.0.0-beta.40, last published: 2 months ago. Start using @angular/flex-layout in your project by running `npm i ...
Read more >
angular/flex-layout - Gitter
google how to install a specific package version with npm, you should find ... Hi, I have problem with jest test when I...
Read more >
angular/flex-layout - UNPKG
*/\nexport const VERSION = new Version('7.0.0-beta.23');\n","/**\n ... n * - '3 3 calc(15em + 20px)'\n * - calc(100% / 7 * 2)\n *...
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