Skip to content

Commit

Permalink
feat: support minimum height of month and week view (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
유동식 authored and jungeun-cho committed Jul 16, 2019
1 parent ce7a983 commit fc21b0f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,3 +482,16 @@ var cal = new Calendar('#calendar', {
}
});
```
### Fit the calendar size for parent element
TOAST UI Calendar's default height is 600px. If you want this calendar to fit to parent element, write container element's css like this.
```css
#calendar {
position: absolute;
left: 0;
right: 0;
bottom: 5px;
top: 64px;
}
```
1 change: 1 addition & 0 deletions src/css/month.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.{css-prefix}month
height: 100%
min-height: 600px

+prefix-classes(month)
.dayname
Expand Down
1 change: 1 addition & 0 deletions src/css/week/layout.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
height: inherit
display: inline-block
font-size: 10px
min-height: 600px

.{css-prefix}today
background: none

0 comments on commit fc21b0f

Please sign in to comment.