Update DataTable width

This commit is contained in:
2021-02-09 13:54:42 +01:00
parent 4f1f03224c
commit 91d3a0ac9e
2 changed files with 8 additions and 7 deletions

View File

@ -294,13 +294,14 @@ def create():
scan_table = DataTable(
source=scan_table_source,
columns=[
TableColumn(field="scan", title="Scan"),
TableColumn(field="hkl", title="hkl"),
TableColumn(field="peaks", title="Peaks"),
TableColumn(field="fit", title="Fit"),
TableColumn(field="export", title="Export", editor=CheckboxEditor()),
TableColumn(field="scan", title="Scan", width=50),
TableColumn(field="hkl", title="hkl", width=100),
TableColumn(field="peaks", title="Peaks", width=50),
TableColumn(field="fit", title="Fit", width=50),
TableColumn(field="export", title="Export", editor=CheckboxEditor(), width=50),
],
width=250,
width=360, # +60 because of the index column
fit_columns=False,
editable=True,
)