mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Add profile modal
This commit is contained in:
@@ -249,7 +249,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</ion-header>
|
||||
<ion-content class="timeline">
|
||||
<ion-content id="timeline-conteiner" class="timeline">
|
||||
|
||||
<!-- Progress bar -->
|
||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||
|
||||
@@ -263,10 +263,13 @@ export class AgendaPage implements OnInit {
|
||||
// auto scroll timeline
|
||||
setTimeout(() => {
|
||||
const timelineMarker = document.querySelector('.cal-current-time-marker');
|
||||
const timelineContainer = document.querySelectorAll('ion-content')[2];
|
||||
|
||||
const timelineContainer = document.querySelector('ion-content#timeline-conteiner');
|
||||
|
||||
const shadowRoot = timelineContainer.shadowRoot;
|
||||
|
||||
const scrollContainer = shadowRoot.querySelector('main');
|
||||
|
||||
try {
|
||||
scrollContainer.scroll({
|
||||
top: timelineMarker['offsetTop'] - ((scrollContainer.offsetHeight/2) - 60),
|
||||
|
||||
Reference in New Issue
Block a user