Skip to content

bug(md-select): options not sized correctly if no placeholder set #3244

@macjohnny

Description

@macjohnny

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When using a md-select without the placeholder attribute, the options shown should be the same width as the md-select element.

What is the current behavior?

The options are at a smaller width than the md-select attribute, since the _triggerWidth property is only set when the placeholder attribute is set, which is done in https://github.com/angular/material2/blob/master/src/lib/select/select.ts#L217

bildschirmfoto 2017-02-22 um 18 41 34

What are the steps to reproduce?

http://embed.plnkr.co/U9jHgw/

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

@angular/material: 2.0.0-beta.2
Google Chrome Version 56.0.2924.87 (64-bit)

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions