material-ui
material-ui copied to clipboard
[Menu] not getting correct dimensions if is display: none on initial render
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.
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
Menu is now a simple component thanks to Popover.