You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request, Autocomplete: Defer calculation of width until actually showing dropdown #4146
Notice: The dropdown is only as wide as the search field was before expanding.
Leave some text in the field and click outside it. The field keeps its size (due to a CSS class set when it contains a value).
Click back in the search field.
Notice: The dropdown is now as wide as the input field.
What is the use-case or motivation for changing an existing behavior?
Being able to dynamically resize the input field when used as a floating "widget" over a map interface, yielding as much screen estate to the map as possible when the input field is not in active use by the user.
Which versions of Angular, Material, OS, browsers are affected?
Angular 4.0.1, Material2 beta.3
Is there anything else we should know?
If the width is set without a transition, the calculation picks up the new width. I am not sure if there is any specification of the timing of events vs CSS layout, but I suspect this is an arbitrary race which the CSS just happens to win.
Activity
fix(autocomplete): not updating the size while the panel is open
angular-automatic-lock-bot commentedon Sep 5, 2019
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.