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( scan_table = DataTable(
source=scan_table_source, source=scan_table_source,
columns=[ columns=[
TableColumn(field="scan", title="Scan"), TableColumn(field="scan", title="Scan", width=50),
TableColumn(field="hkl", title="hkl"), TableColumn(field="hkl", title="hkl", width=100),
TableColumn(field="peaks", title="Peaks"), TableColumn(field="peaks", title="Peaks", width=50),
TableColumn(field="fit", title="Fit"), TableColumn(field="fit", title="Fit", width=50),
TableColumn(field="export", title="Export", editor=CheckboxEditor()), TableColumn(field="export", title="Export", editor=CheckboxEditor(), width=50),
], ],
width=250, width=360, # +60 because of the index column
fit_columns=False,
editable=True, editable=True,
) )

View File

@ -393,7 +393,7 @@ def create():
TableColumn(field="fit", title="Fit", width=50), TableColumn(field="fit", title="Fit", width=50),
TableColumn(field="export", title="Export", editor=CheckboxEditor(), width=50), TableColumn(field="export", title="Export", editor=CheckboxEditor(), width=50),
], ],
width=400, width=460, # +60 because of the index column
editable=True, editable=True,
fit_columns=False, fit_columns=False,
) )