Skip to content
Snippets Groups Projects
Unverified Commit 66db5b4a authored by Sameer Al-Sakran's avatar Sameer Al-Sakran Committed by GitHub
Browse files

Merge pull request #6386 from metabase/issue-6371

size select list to fit contents if smaller than the provided height
parents d4448755 58a2955f
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,12 @@ class BrowserSelect extends Component {
}
<List
width={width}
height={height}
height={
// check to see if the height of the number of rows is less than the provided (or default)
// height. if so, set the height to the number of rows * the row height so that
// large blank spaces at the bottom are prevented
children.length * rowHeight < height ? children.length * rowHeight : height
}
rowHeight={rowHeight}
rowCount={children.length}
rowRenderer={({index, key, style}) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment