Description
Bug, feature request, or proposal:
Provide an option to control the width of the panel, perhaps via css:
<md-autocomplete #auto="mdAutocomplete" panel-class="my-autocomplete-css">
Or if it could just expand to fit the dropdown content that would be nice.
What is the expected behavior?
Allow the autocomplete dropdown panel to be a different width than the associated input field.
What is the current behavior?
The dropdown panel is the same width as the associated input field, which cuts off long values. There doesn't appear to be a way to change the width. A class or style on the md-autocomplete tag is ignored. Wrapping the options in a div with a wider style simply adds a scrollbar to the dropdown rather than widening it.
What are the steps to reproduce?
http://plnkr.co/edit/cKRWeypQ1UmpIk3s2c1E?p=preview
What is the use-case or motivation for changing an existing behavior?
Any situation where the dropdown options contain more information than what gets displayed in the text input. In my case, I'm using the dropdown as a list of search results. Each search result contains a name, an ID, a type, and several other fields to help the user select the appropriate result. But in the text box I just show the ID.
What I'd like is to make the dropdown wide enough to show all of the information in the search results, while the text input is narrower since it only shows the ID.
Which versions of Angular, Material, OS, browsers are affected?
Latest version, Chrome, Firefox, IE, Edge