Select one ... (check one with "x")
[x ] bug
[ ] feature request
[ ] enhancement
Next column would move right when the sorted column header expands
When sorting some column, its header expands to include the sorting icon, but the next column remains where it was. When sorting by column with long name, its header overlaps the next one
Make a datagrid with enough columns to fill the width, give one of the column some ReallyLongName and try to sort by it
https://plnkr.co/edit/F4ODz2cLELOMB7xncPQp?p=preview - sort by any of VeryLongColumn names
Angular version:
5.0.1
Clarity version:
0.10.13
Hi @marcelocarmona, what you're talking about is defined as an expected behavior - see https://github.com/vmware/clarity/issues/618
Hi @grreeenn thanks, I had not seen that issue.
@grreeenn @marcelocarmona This issue might have a simple workaround if you specify the style of handling word breaks in the datagrid columns and cells:
.datagrid-column, .datagrid-cell {
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}
This is the result: https://plnkr.co/edit/nyo8KOcVMitktCjNwrJ0?p=preview
EDIT: Firefox has issues with this workaround
Hi @Shijir
Looked at your plunker - it looks like this

@Shijir although this workaround which works in chrome (and only in chrome, btw - it does not in both FF and Edge) it turns the column name to unreadable pile of characters; so I don't know if it may be considered as a workaround after all, sorry.
A workaround could be that you add a display: inline-table to the .datagrid .datagrid-column class, however by doing this, it undoes the preset width on each header. I'm not sure how to avoid that happening but at least it fixes the bug.
Another workaround (if you are okay with ellipsis), is to add:
.datagrid-column-title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.datagrid-column-flex {
width: 100%;
}
Updated Stackblitz also demonstrating this issue: https://stackblitz.com/edit/clarity-dark-theme-v012-tsdheb (From issue #2605)
Are we planning to fix this issue? It is still reproducible in 1.0. This the text seem start overlapping once the column title has more than 9 characters (non-wrappable).

Hi All,
We just ran into this. It is still an issue as of May, 2019. Any plans on fixing this?
Overlapping headers doesn't seem to be an issue when filtering, but only when sorting. Maybe something is broken there.
Has anyone a good solution to this while waiting for a fix?
Thank you.
This issue is about a version of Clarity that is out of support. In an effort to better manage our backlog, we are closing this issue. We recognize that some of these issues may remain problematic for you, but to help us to be able to prioritize it we ask for a new GitHub issue with an updated demo with a recent supported version of Clarity.