Add explanatory comment for monthHeight

This commit is contained in:
Petar Kapriš 2021-08-27 17:38:32 +02:00 committed by Петар Каприш
parent a7dbe96dc8
commit 4d0c4c78a6

View file

@ -17,6 +17,8 @@ const (
largeGap = 3
monthWidth = 7*dayWidth + 6*smallGap
monthHeight = (31+6+(7-1))/7 + 2
/* monthHeight is the height of a 31-day month starting on Sunday (month
name and weekdays included) */
titleHeight = smallGap + 1
)