material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[AutoComplete] Add a maxHeight property

Open AleffHenrique opened this issue 10 years ago • 6 comments

DropDownMenu has a maxHeight property described as "The maximum height of the Menu when it is displayed". AutoComplete has a similar Menu that I think would be awesome have this same property.

AleffHenrique avatar Jan 15 '16 23:01 AleffHenrique

To be more clear I am trying avoid that the floating menu fills all page's height when dataSource is bigger than the examples given in the docs.

An example here

AleffHenrique avatar Jan 16 '16 02:01 AleffHenrique

an alternative way, just add this: menuStyle={{maxHeight:"30vh"}}

Fauny avatar Jan 16 '16 06:01 Fauny

@Fauny Thanks for the tip ;)

AleffHenrique avatar Jan 23 '16 14:01 AleffHenrique

Picked up with #3194. Thanks for the suggestion! :+1:

mbrookes avatar Feb 09 '16 20:02 mbrookes

@Fauny This doesn't seem to work for me. Where would you put that? I'm trying to put it on <AutoComplete /> but it doesn't seem to make a difference. Using [email protected] so wondering if it is a version difference?

simensen avatar Feb 12 '16 09:02 simensen

This @Fauny . Thank you!

asimon91 avatar Jun 24 '17 16:06 asimon91