diff --git a/src/app/modules/schedule/page/grid/schedule-day.component.ts b/src/app/modules/schedule/page/grid/schedule-day.component.ts
index 31046728..684a12dd 100644
--- a/src/app/modules/schedule/page/grid/schedule-day.component.ts
+++ b/src/app/modules/schedule/page/grid/schedule-day.component.ts
@@ -1,16 +1,16 @@
/*
* Copyright (C) 2022 StApps
- * This program is free software: you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation, version 3.
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation, version 3.
*
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
*
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see
.
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see
.
*/
import {Component, HostListener, Input, OnInit} from '@angular/core';
import moment from 'moment';
diff --git a/src/app/modules/schedule/page/schedule-view.component.ts b/src/app/modules/schedule/page/schedule-view.component.ts
index 8a1e0e8d..0e5800a1 100644
--- a/src/app/modules/schedule/page/schedule-view.component.ts
+++ b/src/app/modules/schedule/page/schedule-view.component.ts
@@ -1,16 +1,16 @@
/*
* Copyright (C) 2022 StApps
- * This program is free software: you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation, version 3.
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation, version 3.
*
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
*
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see
.
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see
.
*/
import {
AfterViewInit,
@@ -32,7 +32,7 @@ import {SCISO8601Date, SCUuid} from '@openstapps/core';
import {ScheduleEvent, ScheduleResponsiveBreakpoint} from './schema/schema';
import {CalendarService} from '../../calendar/calendar.service';
import {CalendarComponent} from './components/calendar.component';
-import {IonDatetime} from '@ionic/angular';
+import {IonContent, IonDatetime} from '@ionic/angular';
import {SwiperComponent} from 'swiper/angular';
/**
@@ -46,12 +46,14 @@ import {SwiperComponent} from 'swiper/angular';
})
export class ScheduleViewComponent
extends CalendarComponent
- implements OnInit, AfterViewInit, OnDestroy
+ implements OnInit, AfterViewInit, OnDestroy, AfterViewInit
{
@ViewChild('mainSwiper') mainSwiper: SwiperComponent;
@ViewChild('headerSwiper') headerSwiper: SwiperComponent;
+ @ViewChild('content') content: IonContent;
+
/**
* The day that the schedule started out on
*/
@@ -140,6 +142,8 @@ export class ScheduleViewComponent
const todayIndex = Number(moment().startOf('week').format('d')) + 1;
this.mainSwiper?.swiperRef.slideTo(todayIndex);
this.setDateRange(todayIndex);
+
+ this.scrollCursorIntoView(this.content);
}
/**
diff --git a/src/app/modules/schedule/page/schedule-view.html b/src/app/modules/schedule/page/schedule-view.html
index 29ce85de..783d05d7 100644
--- a/src/app/modules/schedule/page/schedule-view.html
+++ b/src/app/modules/schedule/page/schedule-view.html
@@ -1,16 +1,16 @@
-
+