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.

Margin with fxLayoutWrap and fxLayoutGap #347

@clement-hollander

Description

@clement-hollander

Hi,

When using responsive API, resizing the screen keeps a margin right on the element wrapped

<div fxLayout="row wrap" 
     fxLayoutAlign="start stretch" 
     fxLayoutGap="20px">

    <div  fxFlex="calc(20% - 20px)" 
          fxFlex.lt-md="0 0 calc(33.33% - 20px)">
        1
    </div>
    <div  fxFlex="calc(20% - 20px)" 
          fxFlex.lt-md="0 0 calc(33.33% - 20px)" >
        2 
    </div>
    <div  fxFlex="calc(20% - 20px)" 
          fxFlex.lt-md="0 0 calc(33.33% - 20px)" >
        3
    </div>
    <div  fxFlex="calc(20% - 20px)" 
          fxFlex.lt-md="0 0 calc(33.33% - 20px)" >
        4
    </div>
    <div fxFlex="calc(20% - 20px)" 
         fxFlex.lt-md="0 0 calc(33.33% - 20px)" >
        5
    </div>
    
</div>

screen shot 2017-07-24 at 10 40 31

screen shot 2017-07-24 at 10 40 21

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4Low-priority issue that needs to be resolvedduplicatequestion

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions