-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Menu] not getting correct dimensions if is display: none on initial render #415
Labels
bug 🐛
Something doesn't work
Milestone
Comments
css override maybe? I too have encountered this, but typically force the width with less/css |
I think the menu's height and width, should be dynamic, will also solve problem with dynamic menu items |
hai-cea
changed the title
Menu not getting correct dimensions if is display: none on initial render
[Menu] not getting correct dimensions if is display: none on initial render
Jun 18, 2015
Menu is now a simple component thanks to Popover. |
brianfeister
pushed a commit
to brianfeister/material-ui
that referenced
this issue
May 1, 2017
* update eslintrc line-breaks for windows * add prop-types as a dependency to prevent react-hot-loader from breaking build. add cross-env for starting tasks which break on Windows. add FAQ for when running develop and javascript files aren't loading even though the build is successful. modify the clean task to execute a function rather than use the ${npm bin} exec command, which doesnst work on Windows. * save exact package.json * add cross-env to npm scripts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I am using the Menu element, but after the first render the menu is hidden using display:none.
After the component mounts, you are setting the this._initialMenuHeight, which is 0 at this point, and it never changes.
The text was updated successfully, but these errors were encountered: