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.

Flexlayout not compatible with material 5 #492

@elineopsommer

Description

@elineopsommer

Bug, feature request, or proposal:

Bug
When using flexLayout rows, the two mat-form-fields next to each other do not take the proper space, the two mat-form-fields together should be properly aligned with the third input (email)

What is the expected behavior?

localhost_4200_monitors_add 1

What is the current behavior?

schermafbeelding 2017-11-07 om 11 48 33

What are the steps to reproduce?

Small piece of code is provided:

<form fxLayout="column" [formGroup]="registerForm">
   <div class="input-row" fxLayout="row" fxLayout.sm="column" fxLayout.xs="column" fxLayoutGap="20px">
    <mat-form-field fxFlex>
      <input matInput
             type="text"
             placeholder="FIRSTNAME" formControlName="firstName">
    </mat-form-field>

    <mat-form-field fxFlex>
      <input matInput
             type="text"
             placeholder="LASTNAME" formControlName="lastName">
    </mat-form-field>
  </div>

  <div class="input-row">
    <mat-form-field fxFill>
      <input matInput
             type="email"
             placeholder="EMAIL"
             email
             formControlName="email">
    </mat-form-field>
  </div>
</form>

What is the use-case or motivation for changing an existing behavior?

Existing behaviour broken

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular5, Material 5

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