on line 98 add + 'px'
placeCalendar() {
var calendarBoundingRect;
this.calendarDOM &&
((calendarBoundingRect = this.calendarDOM?.getBoundingClientRect()),
this.position[1] + calendarBoundingRect.height + this.position[3] >=
window.innerHeight + window.scrollY
? this.calendarDOM.style.setProperty(
"--position-y",
this.position[1] - calendarBoundingRect.height + "px"
)
: (this.calendarDOM.style.setProperty(
"--position-x",
this.position[0] + 'px'
),
this.calendarDOM.style.setProperty(
"--position-y",
this.position[1] + this.position[3] + "px"
)));
},
on line 98 add + 'px'
placeCalendar() {
var calendarBoundingRect;
this.calendarDOM &&
((calendarBoundingRect = this.calendarDOM?.getBoundingClientRect()),
this.position[1] + calendarBoundingRect.height + this.position[3] >=
window.innerHeight + window.scrollY
? this.calendarDOM.style.setProperty(
"--position-y",
this.position[1] - calendarBoundingRect.height + "px"
)
: (this.calendarDOM.style.setProperty(
"--position-x",
this.position[0] + 'px'
),
this.calendarDOM.style.setProperty(
"--position-y",
this.position[1] + this.position[3] + "px"
)));
},