Closed Ahmore closed 6 years ago
Save behavior when setting menu items with property to hidden. The height calculated is not correct and the sub-menu are hidden.
This is a bit of an ugly workaround, but until it is fixed, this is better than nothing:
Added to my sample.layout.ts
constructor:
this.menuService.onSubmenuToggle().subscribe(obs => {
if (obs.item.expanded) {
obs.item.subMenuHeight = (obs.item.children.length * 40);
}
});
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior: 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