restore window resize listener
This commit is contained in:
parent
d1f7026804
commit
20fff97804
@ -6,7 +6,7 @@
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
top: 65px;
|
top: 65px;
|
||||||
transition: 0.25s;
|
transition: 0.25s;
|
||||||
margin-left: -250px;
|
margin-left: -225px;
|
||||||
box-shadow: 5px 0px 30px 0px #000;
|
box-shadow: 5px 0px 30px 0px #000;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
@ -194,6 +194,7 @@ export class StartComponent implements OnInit, OnDestroy, DoCheck {
|
|||||||
}, 300);
|
}, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@HostListener('window:resize', ['$event'])
|
||||||
onResize(): void {
|
onResize(): void {
|
||||||
this.chainWidth = window.innerWidth;
|
this.chainWidth = window.innerWidth;
|
||||||
this.isMobile = this.chainWidth <= 767.98;
|
this.isMobile = this.chainWidth <= 767.98;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user