-
Notifications
You must be signed in to change notification settings - Fork 6.8k
(md-select) with placeholder changes size when selected #3073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is because of this method in private _setValueWidth() {
this._selectedValueWidth = this._triggerWidth - 13;
} When removing this line it works fine, but I'm not sure about the side effects of that. EDIT: |
To fix this temporary you can use: span.mat-select-placeholder.mat-floating-placeholder {
width: auto !important;
} |
Tracking via #2124 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Uh oh!
There was an error while loading. Please reload this page.
Bug, feature request, or proposal:
Bug
What is the expected behavior?
An md-select with a selection should be the same size as with no selection
What is the current behavior?
This is true for an md-select with no placeholder, but when I provide a placeholder, the control sizes differently
As a side note - can anybody comment on why the second controls placeholder overlaps with the control above, when selected? Is this a bug which should be filed separately?
What are the steps to reproduce?
Select a value in both of the lists, and you'll see an offset
http://plnkr.co/edit/KdHQWMFXj2hEFWWFRJyq?p=preview
Which versions of Angular, Material, OS, browsers are affected?
Reproduced in Chrome and Safari latest (not tried other browsers)
The text was updated successfully, but these errors were encountered: