Fix for auto-expansion of events for 4 rows

This commit is contained in:
Ace 2021-02-04 23:48:17 +01:00 committed by GitHub
parent 34f530f2f3
commit 25ce92ad26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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