-
Notifications
You must be signed in to change notification settings - Fork 8k
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
NbMenuItemComponent wrong maxHeight #1703
Comments
Save behavior when setting menu items with property to hidden. The height calculated is not correct and the sub-menu are hidden. |
1 task
This is a bit of an ugly workaround, but until it is fixed, this is better than nothing: Added to my this.menuService.onSubmenuToggle().subscribe(obs => {
if (obs.item.expanded) {
obs.item.subMenuHeight = (obs.item.children.length * 40);
}
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
![image](https://user-images.githubusercontent.com/6359242/40267097-2685cbd2-5b57-11e8-8e17-d6a9c766d666.png)
Error ExpressionChangedAfterItHasBeenCheckedError is gone but max-height still is not as expected. It equals 16px. And my submenu is still hidden like before. Look at screen below.
Expected behavior:
Should adjust to correct height to show all options in menu.
Steps to reproduce:
Other information:
npm, node, OS, Browser
Angular, Nebular
The text was updated successfully, but these errors were encountered: