From 25ce92ad26239a026f3b50c44752ce0f513c70da Mon Sep 17 00:00:00 2001 From: Ace Date: Thu, 4 Feb 2021 23:48:17 +0100 Subject: [PATCH] Fix for auto-expansion of events for 4 rows --- inkycal/modules/inkycal_calendar.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inkycal/modules/inkycal_calendar.py b/inkycal/modules/inkycal_calendar.py index 81717a8..d8e2d42 100644 --- a/inkycal/modules/inkycal_calendar.py +++ b/inkycal/modules/inkycal_calendar.py @@ -213,6 +213,10 @@ class Calendar(inkycal_module): # If this month requires 5 instead of 6 rows, increase event section height if len(cal.monthcalendar(now.year, now.month)) == 5: events_height += icon_height + + # If this month requires 4 instead of 6 rows, increase event section height + elif len(cal.monthcalendar(now.year, now.month)) == 4: + events_height += icon_height * 2 # import the ical-parser from inkycal.modules.ical_parser import iCalendar