Skip to content

bug(md-select) - not rendering correctly inside a flex layout (pure css) when having ngModel #3112

Closed

Description

@jefersonestevo

Bug, feature request, or proposal:

bug

What is the expected behavior?

When inside a flex layout (pure css), the md-select must behave consistently, independent if it has a ngModel or not.

What is the current behavior?

When the md-select has a ngModel, and it's width is different from the default at page load (inside of a flex layout), the component does not fit inside the container.

This plunker demostrate this behavior:
Plunker

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

We need to display our pages in a responsive layout and are using just pure css flex layout while we wait for Angular Flex Layout to became more stable.

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

@angular/material: 2.0.0-beta.1
Firefox: 51.0.1 (64-bit)
Chromium: 53.0.2785.143
Chrome: 56.0.2924.87

Activity

  1. jefersonestevo commented on Feb 22, 2017

    @jefersonestevo
    ContributorAuthor

    I've came to realize that, if I change the width of the md-select to calc(100% - 10px) it works fine.

    Plunker

    The problem, I think, is that the .mat-select-arrow has a position: relative

  2. added a commit that references this issue on Mar 13, 2017
    5c4e780
  3. added a commit that references this issue on Mar 14, 2017
    19c19c0
  4. added a commit that references this issue on Apr 16, 2017
    ac476e4
  5. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  6. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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