-
-
Notifications
You must be signed in to change notification settings - Fork 73
Datatable cutting off last letter of columns headers #867
Datatable cutting off last letter of columns headers #867
Comments
Just want to confirm that I'm also getting the same error as above. I got around it by hardcoding the widths of each of the columns based on the number of characters in the column title.
Dependencies:
|
I have the same issue, and it seems like adding sort_action should not have this problem. I implemented the workaround by @mtwichan, and it is working. I would be very nice to see column widths expanded automatically when adding sort options. |
+1, I am also seeing this issue. In Dash 1.9.x (data-table 4.6.1) this did not happen. As of Dash 1.19+ (data-table 4.11.2) the problem does exist. I'm not sure which release introduced the bug but this makes the column headers unreadable when using sort_action. |
It looks like this bug was introduced with dash-table 4.11.x -- installing dash 1.16.3 gets the latest working table 4.10.1. My guess is that this is related to adding the |
@RunQi-Han I tried your example, and it looks like this was fixed in Dash 2.1.0 |
@AnnMarieW Thanks so much. I have tested it out and confirm the issue is gone with Dash 2.1.0. |
was introduced by #1788 - AFAICT this way still solves plotly/dash-table#867
Hello, I ran into this issue before and was happy to see it solved in Dash 2.1.0. However, I have noticed the issue comes back if you you use fixed_rows. dash==2.2.0
Thanks, |
I'm running into the same issue (only happens with fixed rows, same as comment above) with dash 2.2.0. |
Thanks @chubukov. Anybody have any updates? With Appreciation, |
I'm having the same issue with Dash 2.7.1. If I use fixed_rows, the header gets cutoff when data in the column is shorter than the header. Is there a work-around besides hardcoding widths? |
@DesertLabRat precisely identified the issue. When you use Without With
|
Bug first appeared for me when I upgraded to dash-table 4.11.1
Notice the last letter of the column headers are being cut off when the header text is longer than the cell contents and sorting is enabled. I think this also only happens when the table has a bunch of columns. Small tables with just a few columns and plenty of horizontal space to stretch out seem to be immune, but when you load up a table with many columns, you see this start to happen.
bug in action:

and without sorting:

Thanks yall are great.
Nathan
The text was updated successfully, but these errors were encountered: