question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Height of dropdow

See original GitHub issue

Hey folks,

I’m trying to control the height of the dropdown, I’d like to use a small dropdown. I found on README this menuBuffer, but din’t work.

I solved this with CSS, see:

.Select-menu-outer * {
  max-height: 95px;
}

I know, this is a mistake. Please, any idea?

Tks

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:7
  • Comments:5

github_iconTop GitHub Comments

14reactions
featherartcommented, Feb 4, 2017

You can also override these two classes in your CSS file for the component:

.Select-menu-outer { max-height: 1000px; }

.Select-menu { max-height: 998px; }

4reactions
dshookcommented, Jan 15, 2016

Check out this issue: https://github.com/JedWatson/react-select/issues/316

You can import the base less file then override the heigh variable:

(using webpack)

@import '~react-select/less/select';
@select-menu-max-height:           400px;
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Set Height for the Drop Down of Select box
How to Set Height for the Drop Down of Select box · I've never tried, but try adding 'size' attribute to the <select>....
Read more >
Dropdown Height of Options | OutSystems
I am trying to find a way to limit the height of drop down by half. Actually a similar question came up and...
Read more >
Setting Height and Width of DropDown Container - Infragistics
In this scenario you can set the height and width of the dropdown container using the DropDownContainerHeight and DropDownContainerWidth properties.
Read more >
How to specify height of select drop down
Connect with:​​ Hi, Is there a way I can specify the visible number of displayed items in a select drop down. i.e. for...
Read more >
Dropdown Height - Ignition - Inductive Automation Forum
Hi, i'm looking for a way to increase the height of the dropdown menu in Perspective: I have a list of 90 object...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found