Fixed missing integration of col_spacing in column resizing
This commit is contained in:
parent
a9a639ed2b
commit
66b5b95f74
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ class AgendaListDesign (DesignEntity):
|
|||
fetch_day = fetch_day + timedelta(1)
|
||||
|
||||
def __draw_infos__ (self):
|
||||
table = TableTextDesign(self.size, self.infos, fontsize = self.__date_fontsize__, line_spacing=self.__date_linespace__, col_spacing = self.col_spacing, truncate_cols = False, cell_properties=self.cell_props)
|
||||
table = TableTextDesign(self.size, self.infos, fontsize = self.__date_fontsize__, line_spacing=self.__date_linespace__, col_spacing = self.col_spacing, cell_properties=self.cell_props)
|
||||
self.draw_design(table)
|
||||
|
||||
def __draw_lines__ (self):
|
||||
|
|
|
@ -53,7 +53,7 @@ class TableTextDesign (TextDesign):
|
|||
col_sizes[c] = row_col_size
|
||||
|
||||
for index, size in enumerate(col_sizes):
|
||||
preceding_size = sum(col_sizes[:index])
|
||||
preceding_size = sum(col_sizes[:index]) + index * self.col_spacing
|
||||
if preceding_size + size > self.size[0]:
|
||||
col_sizes[index] = self.size[0] - preceding_size
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue