iced_table icon indicating copy to clipboard operation
iced_table copied to clipboard

Is there a way to make table columns automatically shrink to fit contents?

Open mackler opened this issue 8 months ago • 0 comments

New here so sorry if I'm asking something obvious.

I see Column Trait requires function width to return "the fixed width for this column." But must the width be fixed? Because I also see that iced has enum Length with variant Shrink.

Is there a way for the table automatically to figure out how wide its columns should be based on the table content, such that each column is no wider than necessary to fit the widest content in any cell in that column? (aka "shrink to fit")

mackler avatar Jun 10 '24 20:06 mackler