Skip to content

Add a feature to automatically pre-size table columns based on the Header length #105

Description

@mdindoffer

Table::addColumn has an int defaultWidth parameter, that can be used to set the default width of the column. If the client does not guess correctly the length of the header of the column, it might either waste screen space in the better case, or just cut off important text in the worse case.:
image

This is especially problematic when using localizable strings. There is no way to predict the length of the header for all languages.

It would be great to have a mechanism (i.e. TableColumn::enableDefaultAutoWidth()), that would calculate the required width based on the length of the supplied column title and pre-size the column to wrap the header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions