Skip to content

Position adjustment #1

@GabrielBertini

Description

@GabrielBertini

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"
)));
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions