Skip to content

Commit

Permalink
modified: main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
joycode-hub committed Jul 17, 2024
1 parent 6d0845f commit c06ad48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,9 @@ class Datepicker {
// } else {
// this.pickerContainer.style.top = bottom + this.pickerContainer.getBoundingClientRect().height + 'px';
// }
// if (left + this.pickerContainer.getBoundingClientRect().width > this.viewContainer.innerWidth) {
// this.pickerContainer.style.left = (this.viewContainer.getBoundingClientRect().width - this.pickerContainer.getBoundingClientRect().width) + 'px';
// const editor = activeDocument.querySelector(".cm-editor");
// if (left + this.pickerContainer.getBoundingClientRect().width > editor?.getBoundingClientRect().width!) {
// this.pickerContainer.style.left = (editor?.getBoundingClientRect().width! - this.pickerContainer.getBoundingClientRect().width) + 'px';
// } else this.pickerContainer.style.left = left + 'px';
}

Expand Down

0 comments on commit c06ad48

Please sign in to comment.