fxFlexFill not working on versions 5.0.0-beta.14 and 6.0.0-beta.15
See original GitHub issueI 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:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top 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 >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
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 whenfxFill
is used, so I understand the importance of this.The workaround in the meantime is to explicitly set
fxFlex
to0px
on thediv
that wraps thesubheader
(in the StackBlitz example provided).