Flex-layout: fxLayoutAlign conflicts with fxFlex breakpoint evaluation

Created on 29 Jan 2019  路  6Comments  路  Source: angular/flex-layout

Bug Report

image

<div fxLayout="row" fxFlex.gt-sm="25%" fxFlex.lt-md="100%" fxLayoutAlign="center end" class="sec1">

This div (red) should be 25% for breakpoints greater 960px and 100% for all lower resolutions.
This works fine if you refresh the page at MD breakpoint (first screenshot), but if you increase the size to LG the div (red) gets 100% of the size. This depends on the fxLayoutAlign directive. If you remove this, then everything works fine. But with fxLayoutAlign the breakpoint for fxFlex are not evaluated, if you resize the browser.

What is the expected behavior?

This works fine in 7.0.0-beta19

What is the current behavior?

This breaks in all version greater than 7.0.0-beta20

What are the steps to reproduce?

https://stackblitz.com/edit/angular-flex-layout-seed-dtspn2

Just resize the output window

P3 bug has pr

Most helpful comment

Yes, all version greater beta 19 are affected

All 6 comments

happening on beta 22 as well.

Yes, all version greater beta 19 are affected

I don't think we'll be able to get to this issue this week, but we will try and get it fixed by the next release. Thanks for tracking this down!

So the title of this issue is not exactly accurate. What happens in fxFlex generation is that it adds a max-width/max-height/etc, which ultimately gets overwritten by/overwrites fxLayoutAlign. This question of "who wins" will require further thought.

yep. same here. I solved downgrading to 7.0.0-beta.19

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ThomasBurleson picture ThomasBurleson  路  5Comments

nueko picture nueko  路  5Comments

spottedmahn picture spottedmahn  路  5Comments

Pikachews picture Pikachews  路  4Comments

jcoronel94 picture jcoronel94  路  4Comments