Skip to content
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.

fxLayoutAlign conflicts with fxFlex breakpoint evaluation #1010

@silvioboehme

Description

@silvioboehme

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

Metadata

Metadata

Assignees

Labels

P3Important issue that needs to be resolvedbughas prA PR has been created to address this issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions