docs(docs-infra): show top menu at 992px screen width (#26418)

Show top menu at 992px screen width. The JS expression was checking just for screen widths
strictly greater than 992px to show the menu, while the CSS media query was showing the hamburger
icon just for screen widths strictly smaller than 992px, so there was a gap of 1px that the user
could't navigate through the top menu.

closes #24324

PR Close #26418
This commit is contained in:
Carlos Schneider 2018-10-12 11:27:09 -03:00 committed by Jason Aden
parent cb9fd9b4d7
commit 63e6d1a896

View File

@ -234,7 +234,7 @@ export class AppComponent implements OnInit {
@HostListener('window:resize', ['$event.target.innerWidth'])
onResize(width: number) {
this.isSideBySide = width > this.sideBySideWidth;
this.isSideBySide = width >= this.sideBySideWidth;
this.showFloatingToc.next(width > this.showFloatingTocWidth);
if (this.isSideBySide && !this.isSideNavDoc) {