plotly / dash-table

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
420 stars 72 forks source link

[Duplicate] With fixed rows, columns are as wide as the data and not the headers #740

Closed chriddyp closed 4 years ago

chriddyp commented 4 years ago

If the column headers are wider than the data (which is often the case with numerical tables & text column headers), then the width of the columns is too narrow and the column headers are cut off.

Without fixed columns, the column width expands to account for the width of the headers. I would expect the behavior to be the same with fixed headers.

Expected behavior: image

Default behavior with fixed_rows image

Still undesirable behavior with header overflow: image

chriddyp commented 4 years ago

(I thought that I had already raised this issue before, but I couldn't find it! Feel free to close if it's a duplicate)

tashrifbillah commented 4 years ago

I guess this is the one you refer to? https://github.com/plotly/dash-table/issues/730

chriddyp commented 4 years ago

@tashrifbillah - SImilar, but not quite the same. This issue happens with or without column icons. The solution may end up fixing both issues though.

chriddyp commented 4 years ago

In this example, it looks like it's not actually an issue: the headers are wider than the cells but nothing is cut-off. Screen Shot 2020-04-13 at 3 41 10 PM

However, if I add more columns then the last column does not expand to it's width. It appears that Column 10 is as wide as the other columns: Screen Shot 2020-04-13 at 3 43 27 PM

chriddyp commented 4 years ago

Then, if I create 20 columns, we see the issue: image

chriddyp commented 4 years ago

I thought that I had already raised this issue before

Ah found it - https://github.com/plotly/dash-table/issues/432