nhn / toast-ui.react-calendar

TOAST UI Calendar wrapper for React.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alignment Issue

sjashwin opened this issue · comments

Version: 1.0.6

<Calendar />

Screenshot 2022-06-11 122818

This line

<div class="tui-full-calendar-layout tui-view-1" style="background-color: white;"></div>

offsets the calendar by 800px by default

Fix

<Calendar height="10px"/>

Yes, because it needs the height prop. and the default value is 800px.

https://github.com/nhn/toast-ui.react-calendar/blob/master/src/index.js#L27-L30

You need to set the height of the container of the calendar in order to show it properly.