flex-direction: row; box-sizing: border-box; display: flex;
added automatically #496
Description
I am seeing flex-direction: row; box-sizing: border-box; display: flex;
added on my component that is rendered in the router-outlet.
My app.component.html looks like
<pro-header *ngIf="!headless"></pro-header>
<router-outlet></router-outlet>
<pro-footer *ngIf="!headless"></pro-footer>
The router-outlet will render a component which I give a class fxFlex
via
@HostBinding( 'class.fxFlex') true;
so it is flexed.
However, when the components root DIV uses fxLayout column WITH an fxFlex, like
<div fxLayout="column" fxLayoutAlign="center center" fxFlex>
it automatically adds flex-direction row to its parent.
The rendered html will be like
<pro-header *ngIf="!headless"></pro-header>
<router-outlet></router-outlet>
<pro-securing style="flex-direction: row; box-sizing: border-box; display: flex;">
....
</pro-securing>
<pro-footer *ngIf="!headless"></pro-footer>
This row layout on the pro-securing
component creates the side effect that when the footer becomes large, it pushes the pro-securing into the header. It doesn't allow a scrollbar.
I find this a bit strange behaviour.
I am looking for a header, content (can expand) and sticky footer. Scroll bar should automatically engage when content is larger then header+content+footer.
Any thoughts?