Open notmatthancock opened 4 years ago
Thanks for the report - looks like a bad interaction between Qt and the new column sizing code.
The work-around is to turn off stretch_last_section
and specify the widths of all but the last column, eg.
class PersonAdapter(TabularAdapter):
columns = [('Name', 'name'), ('Age', 'age')]
name_width = Int(100)
should give you close to what you want.
Not sure if the right solution here is to deprecate stretch last section, or to work out how to account for it in the layout code.
Thanks for the suggestion. We'll probably just leave it at stretch_last_section=False
and leave resizing up to the user.
If
stretch_last_section=True
(the default) for theTabularEditor
, the resulting table has a final column which is exceedingly wide:Example:
Result with
stretch_last_section=True
Result with
stretch_last_section=False