Fine tuned visible_event_count

This commit is contained in:
Maximilian Giller 2019-04-04 13:15:15 +02:00
parent 757a66eb6e
commit f2581e57a6

View file

@ -25,7 +25,7 @@ class EventListDesign (DesignEntity):
self.event_prefix_func = lambda x : date_str(x.begin_datetime)
def __finish_image__ (self):
self.visible_event_count = int(int(self.size[1]) // (self.line_spacing + int(self.text_size)))
self.visible_event_count = int(int(self.size[1] + self.line_spacing) // (self.line_spacing + int(self.text_size)))
self.__fill_event_matrix__()
col_hori_alignment = [ 'right', 'left' ]