-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
IE11: Width of select Panel is too low #11609
Comments
same here, it appeared after upgrading from |
@crisbeto the However, I don't understand in which situation the I filed PR #11801 that sets |
@crisbeto another solution that works it to wrap the content with a |
I am going with this: /** IE 11 fixes */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/* IE10+ CSS styles go here */
/** IE 11 fixes */
.mat-select-panel {
min-width: inherit !important;
}
.cdk-overlay-pane {
display: block;
}
}
|
Awesome. This worked well. |
Fixes the select options panel width not matching the select width in IE11 Fixes #11609
I think that problem is with flex-item which ignore min-width, so, this works for me too:
|
@macjohnny Seems like the upper solution of @striky1 doesn't work properly in IE11: Seen: https://angular-material2-issue-63dnhb.stackblitz.io/ The hacky solution of @yogeshgadge does work fine. |
It's not a good idea to change the display of |
* fix(select): Fixes width-issue of select option panel in IE11 Fixes the select options panel width not matching the select width in IE11 Fixes #11609 * code cleanup * fix leave-animation of select panel not working due to angular/angular#23302
* fix(select): Fixes width-issue of select option panel in IE11 Fixes the select options panel width not matching the select width in IE11 Fixes #11609 * code cleanup * fix leave-animation of select panel not working due to angular/angular#23302
It seems like it is still broken (or regression was introduced recently).
Fork of original repro: https://stackblitz.com/edit/angular-material-issue-nt6g9o The following fix worked for me:
while the next one did not:
But I don't want to introduce any issues to mat-dialogs, which I'm using as well in my project. |
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. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
The Width of the select-panel should be as large as in other Browsers, so that especially longer options can be read.
What is the current behavior?
The select panel is way shorter, so that longer options are truncated early. On opening the Select Panel you can even see, that the width gets adjusted from a wider width to a lower width in a split of a second.
In IE11:
In Chrome 67:
Another point is the invisible part of the select-panel, the "cdk-overlay-pane", it's width is now much wider, so that you cannot close the panel by clicking next to it, because there is no backdrop yet
What are the steps to reproduce?
https://stackblitz.com/edit/angular-material2-issue-mm2na2?file=app/app.component.html
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
The stackblitz is build using Angular 6.0.x and Material 6.2.0. But at least lower 6.x.x Versions of Material are affected too.
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: