Skip to content
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

fix(menu): remove hardcoded max-height #122

Merged
merged 13 commits into from
Jan 18, 2018
Merged

fix(menu): remove hardcoded max-height #122

merged 13 commits into from
Jan 18, 2018

Conversation

yggg
Copy link
Contributor

@yggg yggg commented Jan 5, 2018

#65

}
});
.pipe(takeWhile(() => this.alive))
.pipe(filter(data => this.compareTag(data.tag)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be in the one pipe

@@ -230,16 +278,17 @@ export class NbMenuComponent implements OnInit, OnDestroy {
}

private getHomeItem(items: NbMenuItem[]): NbMenuItem {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you could rewrite this method more beautiful

item.expanded = false;
if (oldValue !== item.expanded) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it the same as if (oldValue)

@nnixaa nnixaa merged commit a753bee into akveo:master Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants