Fixed wrong calculation of visible_event_count
This commit is contained in:
parent
319e6947b1
commit
bef88f0b85
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class EventListDesign (DesignEntity):
|
||||||
self.event_prefix_func = lambda x : self.__remove_leading_zero__(x.begin_datetime.strftime('%d %b'))
|
self.event_prefix_func = lambda x : self.__remove_leading_zero__(x.begin_datetime.strftime('%d %b'))
|
||||||
|
|
||||||
def __finish_image__ (self):
|
def __finish_image__ (self):
|
||||||
self.visible_event_count = int((self.size[1] - self.line_spacing) // (self.line_spacing + self.text_size))
|
self.visible_event_count = int(int(self.size[1]) // (self.line_spacing + int(self.text_size)))
|
||||||
self.__fill_event_matrix__()
|
self.__fill_event_matrix__()
|
||||||
|
|
||||||
col_hori_alignment = [ 'right', 'left' ]
|
col_hori_alignment = [ 'right', 'left' ]
|
||||||
|
|
Loading…
Reference in a new issue