diff --git a/src/widgets/calendar.rs b/src/widgets/calendar.rs index 1c6d6513..2e1e49e7 100644 --- a/src/widgets/calendar.rs +++ b/src/widgets/calendar.rs @@ -177,7 +177,9 @@ impl Monthly<'_, DS> { spans.push(self.format_date(curr_day)); curr_day += Duration::DAY; } - buf.set_line(days_area.x, y, &spans.into(), area.width); + if buf.area.height > y { + buf.set_line(days_area.x, y, &spans.into(), area.width); + } y += 1; } }