diff --git a/src/app/components/creator/room-creator-page/room-creator-page.component.ts b/src/app/components/creator/room-creator-page/room-creator-page.component.ts index adb16bbe06569250cf7d94644a30c6733d6b9187..0d6a23fbb87b0e1846891aed117241960511fc75 100644 --- a/src/app/components/creator/room-creator-page/room-creator-page.component.ts +++ b/src/app/components/creator/room-creator-page/room-creator-page.component.ts @@ -32,6 +32,7 @@ export class RoomCreatorPageComponent extends RoomPageComponent implements OnIni } ngOnInit() { + window.scroll(0, 0); this.translateService.use(localStorage.getItem('currentLang')); this.route.params.subscribe(params => { this.getRoom(params['roomId']); diff --git a/src/app/components/participant/room-participant-page/room-participant-page.component.ts b/src/app/components/participant/room-participant-page/room-participant-page.component.ts index 52b90efc3b6edeb2bbe6f9fdf45f05c1a5cef0e3..49f308215252343c542b3eb0629952d7f348b3a9 100644 --- a/src/app/components/participant/room-participant-page/room-participant-page.component.ts +++ b/src/app/components/participant/room-participant-page/room-participant-page.component.ts @@ -25,6 +25,7 @@ export class RoomParticipantPageComponent implements OnInit { } ngOnInit() { + window.scroll(0, 0); this.route.params.subscribe(params => { this.getRoom(params['roomId']); }); diff --git a/src/app/components/shared/statistic/statistic.component.ts b/src/app/components/shared/statistic/statistic.component.ts index 0f32279f443a93bdf1fee94f7403ff1902a52d14..fe946387e9eee575acdcd8f2d84b58693ac21a93 100644 --- a/src/app/components/shared/statistic/statistic.component.ts +++ b/src/app/components/shared/statistic/statistic.component.ts @@ -46,6 +46,7 @@ export class StatisticComponent implements OnInit { } ngOnInit() { + window.scroll(0, 0); // Maybe not so bad without header.. this.translateService.use(localStorage.getItem('currentLang')); this.maxLength = innerWidth / 12; this.answers = new Array<string>();