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.

fxLayoutWrap fxLayoutGap Margin Issue in last row #363

@naveedahmed1

Description

@naveedahmed1

Please take a look at the below plunker and notice the last row:

group

https://plnkr.co/edit/pBA4A55u3hQVfi1DkGdw?p=preview

Since the last box in the last row is missing the margin-right the boxes in this row are not properly aligned.

As per the documentation of fxLayoutGap it says:

"Note that the last child item will NOT have a margin gap specified; only the inside gaps are specified."

This works great when boxes can be accommodated in one row. But when we are using fxLayoutWrap and we need more than one rows to accommodate boxes the boxes in last row has alignment issue.

To address this, when using fxLayoutWrap, I think it should either add margin right to the last box as well or the margin right should be removed from the last element in each row.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions