material icon indicating copy to clipboard operation
material copied to clipboard

md-autocomplete in md-dialog have huge height also with only few values

Open mrigo opened this issue 11 years ago • 5 comments

Hi, I'm using md-autocomplete inside md-dialog and the md-virtual-repeat-container that shows the possible choises is too high when I have only one element. It's the right behaviour?

Thanks schermata 2015-11-19 alle 12 50 32

mrigo avatar Nov 19 '15 12:11 mrigo

+1, having the same "problem".

sch4lly avatar Nov 19 '15 12:11 sch4lly

+1, I experienced the same issue on a customer's pc who's using IE11. But unfortunately I couldn't reproduce the bug on my developer machine so far.

jb29 avatar Nov 20 '15 08:11 jb29

I reproduced this issue on this codepen. This is basically a fork of the current demo of md-autcomplete (1.0.0-rc5), I just trimmed down the number of states to the first three.

You will also notice that clicking on Alabama, clearing the search text and clicking on the search bar again resizes the container height.

elyas-bhy avatar Dec 02 '15 11:12 elyas-bhy

Min repo-

click the autocomplete box and type 'q'

http://codepen.io/anon/pen/KVKVjR

gbaj avatar Dec 04 '15 04:12 gbaj

I've also been having this issue, reversing the changes made to src/components/virtualRepeat/virtual-repeater.js in d6d7b084593467f0325db24b7698bb80f82a52a2 seems to make the issue go away.

Rid avatar Dec 04 '15 15:12 Rid