mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
comments
This commit is contained in:
@@ -90,6 +90,8 @@ class TableLayout(Layout):
|
||||
child_styles = child.styles
|
||||
column_span = child_styles.column_span or 1
|
||||
row_span = child_styles.row_span or 1
|
||||
# Find a slot where this cell fits
|
||||
# A cell on a previous row may have a row span
|
||||
while True:
|
||||
column, row = cell_coord
|
||||
coords = widget_coords(column, row, column_span, row_span)
|
||||
@@ -108,6 +110,7 @@ class TableLayout(Layout):
|
||||
continue
|
||||
cell_coord = next_coord()
|
||||
|
||||
# Resolve columns / rows
|
||||
columns = resolve(
|
||||
repeat_scalars(column_scalars, table_size_columns),
|
||||
size.width,
|
||||
|
||||
Reference in New Issue
Block a user