Update DataTable width
This commit is contained in:
@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user