Skip to content

How to remove scrollbars in the week view and fit to the container #1241

Answered by adhrinae
andrelung asked this question in Q&A
Discussion options

You must be logged in to vote

@andrelung

Reason

You're trying to use the v1's theme, which significantly differs from the current version.

https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/theme.md#week-theme

You can override CSS styles for your own use case, but we fixed the unit of the height of each row in the time grid as percentage(%) values.

Solution

You can open the browser's devtools and find which element creates the scrollbar then override the stylesheet. That's what we intended, however, I'll leave the solution for documentation.

First, Let's override the min-height of the time grid panel.

.toastui-calendar-timegrid {
  height: 100%;
  /* fit-content or auto(IE) */
  min-height: fit-content;
}

But…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@andrelung
Comment options

Answer selected by adhrinae
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1240 on August 08, 2022 00:39.