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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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

wants to merge 1 commit into from

Conversation

CorentinDeBoisset
Copy link

@CorentinDeBoisset CorentinDeBoisset commented Jul 11, 2016

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

overflow: 'auto',
maxHeight: '50%', // TODO: don't cheat, let it flow to the bottom
maxHeight: '50vh',
Copy link
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?

@@ -39,9 +40,9 @@ let Autocomplete = React.createClass({
background: 'rgba(255, 255, 255, 0.9)',
padding: '2px 0',
fontSize: '90%',
position: 'fixed',
position: 'absolute',
Copy link
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
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