Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Angular flex layout: Parent element with fxLayout="column" affects height not width of child element

I have a parent element that applies fxLayout="column".
Inside the parent element I have a child element that applies fxFlex="80".

In this case, fxFlex="80" affects the height of the child element not the width.
I get the expected result when changing the parent flex-layout to row.

How can I achieve the expected results with fxLayout="column" and still using this declarative style?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Can you try something like this?

<div fxLayout="row">
  <div fxLayout="column" fxFlex="80">
    <!-- place other elements here -->
  <div>
</div>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading