Skip to content

Commit 7a9e81a

Browse files
authored
[OSTEO] Close header menu when window is resized (#867)
1 parent 33ba75e commit 7a9e81a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ddp-workspace/projects/ddp-osteo/src/app/components/header/header.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,8 @@ export class HeaderComponent implements OnInit {
5252
|| this.document.body.scrollTop || 0;
5353
this.isPageScrolled = !!scrolledPixels;
5454
}
55+
56+
@HostListener('window: resize') public onWindowResize(): void {
57+
this.isPanelOpened = false;
58+
}
5559
}

0 commit comments

Comments
 (0)