Skip to content

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

Merged
nnixaa merged 13 commits into
akveo:masterfrom
yggg:fix/menu-animation
Jan 18, 2018
Merged

fix(menu): remove hardcoded max-height#122
nnixaa merged 13 commits into
akveo:masterfrom
yggg:fix/menu-animation

Conversation

@yggg

@yggg yggg commented Jan 5, 2018

Copy link
Copy Markdown
Contributor

#65

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

Copy link
Copy Markdown
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
Copy Markdown
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

}
const oldValue = !!item.expanded;
item.expanded = false;
if (oldValue !== item.expanded) {

Copy link
Copy Markdown
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.

3 participants