Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SelectField] DropDownMenu width #4858

Closed
deepfriedbrain opened this issue Jul 30, 2016 · 4 comments
Closed

[SelectField] DropDownMenu width #4858

deepfriedbrain opened this issue Jul 30, 2016 · 4 comments
Labels
component: select This is the name of the generic UI component, not the React module!

Comments

@deepfriedbrain
Copy link

I'm not able to control the width of the DropDownMenu using the menuStyle property on the SelectField component. Setting a width in the menuStyle changes the width of the select field itself (see the screenshot below) but doesn't change the width of DropDownMenu. This seems to be a bug.

There's a maxHeight property for the DropDownMenu that works well for the height. But I couldn't find a way to control the width.

  • Material-UI: 0.15.2
  • React: 15.3
  • Browser: Chrome 49x

screen shot 2016-07-31 at 12 50 21 am

@mpontikes mpontikes mentioned this issue Aug 5, 2016
13 tasks
@gausie
Copy link

gausie commented Sep 29, 2016

menuStyle is actually misnamed here, as it does not pass through to the menuStyle property on the DropDownMenu as one might expect, instead passing through to the style property. This means that there is no direct way to change the inline styles of the Popover Menu itself.

@cryptic-mystic
Copy link

@gausie well that's confusing.... Any way we can control the width? Having a popover with a width bigger/smaller than a sized select is confusing for users

@gausie
Copy link

gausie commented Mar 13, 2017

Afaik you can now pass down styles to a popover. I think i fix landed a few weeks ago, but can't remember where just now

@cryptic-mystic
Copy link

Ok thanks, I'll dig around a bit and see if I can figure something out

@oliviertassinari oliviertassinari added the component: select This is the name of the generic UI component, not the React module! label Mar 26, 2017
@oliviertassinari oliviertassinari changed the title SelectField DropDownMenu width [SelectField] DropDownMenu width Mar 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: select This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

4 participants