Skip to content
Snippets Groups Projects
Commit cfc501d7 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Fix scrolling when page is overloaded

parent 5d8df557
Branches
Tags
No related merge requests found
...@@ -32,6 +32,7 @@ export class RoomCreatorPageComponent extends RoomPageComponent implements OnIni ...@@ -32,6 +32,7 @@ export class RoomCreatorPageComponent extends RoomPageComponent implements OnIni
} }
ngOnInit() { ngOnInit() {
window.scroll(0, 0);
this.translateService.use(localStorage.getItem('currentLang')); this.translateService.use(localStorage.getItem('currentLang'));
this.route.params.subscribe(params => { this.route.params.subscribe(params => {
this.getRoom(params['roomId']); this.getRoom(params['roomId']);
......
...@@ -25,6 +25,7 @@ export class RoomParticipantPageComponent implements OnInit { ...@@ -25,6 +25,7 @@ export class RoomParticipantPageComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
window.scroll(0, 0);
this.route.params.subscribe(params => { this.route.params.subscribe(params => {
this.getRoom(params['roomId']); this.getRoom(params['roomId']);
}); });
......
...@@ -46,6 +46,7 @@ export class StatisticComponent implements OnInit { ...@@ -46,6 +46,7 @@ export class StatisticComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
window.scroll(0, 0); // Maybe not so bad without header..
this.translateService.use(localStorage.getItem('currentLang')); this.translateService.use(localStorage.getItem('currentLang'));
this.maxLength = innerWidth / 12; this.maxLength = innerWidth / 12;
this.answers = new Array<string>(); this.answers = new Array<string>();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment