Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

[changed] set the position of the menu as fixed#135

Open
CorentinDeBoisset wants to merge 1 commit intoreactjs:masterfrom
Theodo-UK:feature/update-css-positionning
Open

[changed] set the position of the menu as fixed#135
CorentinDeBoisset wants to merge 1 commit intoreactjs:masterfrom
Theodo-UK:feature/update-css-positionning

Conversation

@CorentinDeBoisset
Copy link
Copy Markdown

@CorentinDeBoisset CorentinDeBoisset commented Jul 11, 2016

This is a copy of the changes from #75 without the conflicts

Comment thread lib/Autocomplete.js
position: 'absolute',
overflow: 'auto',
maxHeight: '50%', // TODO: don't cheat, let it flow to the bottom
maxHeight: '50vh',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is browser support for vh enough to use it?

Comment thread lib/Autocomplete.js
padding: '2px 0',
fontSize: '90%',
position: 'fixed',
position: 'absolute',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the title of you PR be: "Set the position of menu as "absolute" instead of "fixed""?

@CMTegner
Copy link
Copy Markdown
Collaborator

Just a heads-up (in case you're waiting for this PR to land): You can fully customize the dropdown menu by using props.menuStyle and props.renderMenu.

We'll probably be removing most of the default menu styles for 2.0, possibly only keeping the absolute coordinates which are passed to props.renderMenu (although you could calculate this yourself if we added support for rendering custom components instead of just fragments for the menu).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants