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.

Sizes not adjusting properly #68

@jt-helsinki

Description

@jt-helsinki

Hi,

I am trying to create a layout that is 400px wide for use inside an <md-dialog>.

<form role="form" (ngSubmit)="authorize(loginForm)" novalidate  #loginForm="ngForm">
        <div fxLayout="row"> 
            <h3>Enter Login Credentials</h3>
        </div>
        <div fxLayout="row"> 
            <p class="validation-message" *ngIf="authorisationErrorMessage">{{authorisationErrorMessage}}</p>
        </div>
        <div fxLayout="row">
            <div fxFlex="400px" fxFlex.gt-xs="400px" fxFlex.xs="300px">
                <md-input-container class="fullwidth"> 
                    <input md-input 
                        name="licenceNumber"
                        placeholder="Licence Number" >   
                </md-input-container>
            </div>
        </div>
        <div fxLayout="row">
            <div fxFlex="400px" fxFlex.xs="300px">
                <md-input-container class="fullwidth"> 
                    <input md-input 
                        name="email"
                        placeholder="Email">       
                </md-input-container> 
            </div> 
        </div>
        <div fxLayout="row">
            <div fxFlex="400px" fxFlex.xs="300px">
                <md-input-container class="fullwidth"> 
                    <input md-input 
                        name="plainPassword"
                        placeholder="Password"
                        type="password">     
                </md-input-container>
            </div>  
        </div>
        <div fxLayout="row">
            <div fxFlex="400px" fxFlex.xs="300px">
                <button md-raised-button color="primary" type="submit">Login</button>
            </div>
        </div> 
</form>

In this case I am expecting a form that is 400px wide yet when I measure it is only 320px. It appears as if the dimensions for the layout are being ignored. Can this be considered a bug or am I doing something wrong here?

JT

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions