Skip to content

Commit

Permalink
fix height on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
davish committed Feb 28, 2022
1 parent 0f9319d commit cc86348
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"version": "node version-bump.mjs && git add manifest.json versions.json",
"lint": "prettier --check src/**/*.ts*",
"fix": "prettier --write src/**/*.ts*",
"compile": "tsc -noEmit",
"compile": "tsc -noEmit --skipLibCheck",
"prepare": "husky install"
},
"keywords": [],
Expand Down
7 changes: 6 additions & 1 deletion src/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ export class CalendarView extends ItemView {
},
});

calendarEl.style.height = "100%";

this.registerEvent(
this.app.metadataCache.on("changed", this.cacheCallback)
);
Expand Down Expand Up @@ -276,7 +278,10 @@ export class CalendarView extends ItemView {
}

onResize(): void {
this.calendar && this.calendar.render();
if (this.calendar) {
this.calendar.render();
this.calendar.el.style.height = "100%";
}
}

async onClose() {
Expand Down

0 comments on commit cc86348

Please sign in to comment.