This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
<ng-content> applies wrong layout #381
Open
Description
<sub-app>
<div fxFlex="30" style="background-color:lightgreen;"></div>
</sub-app>
with sub-app
template being
<div fxLayout="column" style="height:100px; width:100px; background-color:lightgrey;">
<ng-content></ng-content>
</div>
According to Chrome inspection, this results in: (omitted unimportant styles)
<sub-app>
<div fxlayout="column">
<div fxflex="30" style="max-width:30%;"></div>
</div>
</sub-app>
However, the applied max-width:30%;
is wrong, this should be max-height:30%
since the layout direction is column
.
Here is a plunker: https://plnkr.co/edit/wOzPHMFLSmXHtg1sKjHe?p=preview