fix 1 to 100%

This commit is contained in:
Peter Maquiran
2024-04-18 16:32:28 +01:00
parent b8200ffb68
commit 8a88d91b5a
8 changed files with 57 additions and 31 deletions
+15 -15
View File
@@ -291,7 +291,7 @@ export class AgendaPage implements OnInit {
try {
this.myCal.update();
this.myCal.loadEvents();
this.onDropDownScrollWeal()
// this.onDropDownScrollWeal()
} catch (e) { }
//this.reloadCalendar();
@@ -438,19 +438,19 @@ export class AgendaPage implements OnInit {
};
onDropDownScrollWeal() {
// onDropDownScrollWeal() {
try {
setTimeout(() => {
document.querySelector('.dropdown-scroll-weel').querySelectorAll('.active')[0].scrollIntoView({ behavior: 'smooth', block: 'center' });
setTimeout(() => {
document.querySelector('.dropdown-scroll-weel').querySelectorAll('.active')[1].scrollIntoView({ behavior: 'smooth', block: 'center' });
}, 300)
}, 10)
} catch (error) {
// console.log(error)
}
}
// try {
// setTimeout(() => {
// document.querySelector('.dropdown-scroll-weel').querySelectorAll('.active')[0].scrollIntoView({ behavior: 'smooth', block: 'center' });
// setTimeout(() => {
// document.querySelector('.dropdown-scroll-weel').querySelectorAll('.active')[1].scrollIntoView({ behavior: 'smooth', block: 'center' });
// }, 300)
// }, 10)
// } catch (error) {
// // console.log(error)
// }
// }
currentMoth = {
@@ -795,7 +795,7 @@ export class AgendaPage implements OnInit {
try {
this.myCal.update();
this.myCal.loadEvents();
this.onDropDownScrollWeal()
// this.onDropDownScrollWeal()
} catch (e) { }
this.updateEventListBox()
@@ -817,7 +817,7 @@ export class AgendaPage implements OnInit {
try {
this.myCal.update();
this.myCal.loadEvents();
this.onDropDownScrollWeal()
// this.onDropDownScrollWeal()
} catch (e) { }
this.updateEventListBox()