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 3414316fc8
commit 02975e9166
1 changed files with 1 additions and 1 deletions

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) {