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.

fxShow/fxHide breaks alignment #184

@jt-helsinki

Description

@jt-helsinki

Hi,

When adding fxShow/FxHide to my <div>, the fxLayoutAlign alignment is no longer recognised. This can be easily replicated in the plunkr demo for this project. Fiddling around with various combinations make this easy to replicate.

  • "@angular/flex-layout": "^2.0.0-beta.5"

If this is not a bug, would it be possible to provide an example? My understanding of the documentation is that I should be using <fxFlexAlign> for aligning the contents however that makes no difference either way.

Many thanks

Works as intended:

     <div fxLayout="row" fxFlex="grow" fxLayoutAlign="start center">
            <div fxFlex="200px" fxLayoutAlign="start center">
                Start Alignment
            </div>
            <!-- responsive menu -->
            <div fxFlex="grow" fxLayoutAlign="end center">
                End Alignment
            </div>
    </div>

Does NOT work:

     <div fxLayout="row" fxFlex="grow" fxLayoutAlign="start center">
            <div fxFlex="200px" fxLayoutAlign="start center">
                Start Alignment
            </div>
            <!-- responsive menu -->
            <div fxFlex="grow" fxLayoutAlign="end center" fxShow fxHide.gt-sm>
                End Alignment
            </div>
    </div>

Metadata

Metadata

Labels

bughas prA PR has been created to address this issueneeds: demo

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions