Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 34b3310

Browse files
devversionmmalerba
authored andcommitted
fix(autocomplete): dropdown shrink restore (#9734)
The virtualRepeatContainer for the autocomplete dropdown determines the original dropdown size from the height of the container. Commit b114302 removed the fixed height of the dropdown selector, since we now have dynamic dropdown heights. This does cause an issue for the virtualRepeatContainer, where it can't determine the `originalSize` of the dropdown. Setting it to 100 percent, does properly expand the dropdown to the `max-height` of the JavaScript. Fixes #9726.
1 parent 4006f53 commit 34b3310

File tree

2 files changed

+261
-209
lines changed

2 files changed

+261
-209
lines changed

src/components/autocomplete/autocomplete.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ md-autocomplete {
184184
position: absolute;
185185
box-shadow: 0 2px 5px rgba(black, 0.25);
186186
z-index: $z-index-tooltip;
187+
188+
// Expand the virtualRepeatContainer as much as the max-height from the JavaScript allows.
189+
// This is necessary for the virtualRepeatContainer to be able to grow back.
190+
height: 100%;
187191
}
188192

189193
.md-virtual-repeat-container.md-not-found {

0 commit comments

Comments
 (0)