material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[Menu] not getting correct dimensions if is display: none on initial render

Open omerts opened this issue 11 years ago • 3 comments

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.

omerts avatar Mar 10 '15 16:03 omerts

css override maybe? I too have encountered this, but typically force the width with less/css

yhbrandon avatar Mar 10 '15 20:03 yhbrandon

I think the menu's height and width, should be dynamic, will also solve problem with dynamic menu items

omerts avatar Mar 11 '15 12:03 omerts

Menu is now a simple component thanks to Popover.

alitaheri avatar Dec 15 '15 11:12 alitaheri