Clarity: Column overlaps in Datagrid when using expandable rows

Created on 13 Nov 2019  路  7Comments  路  Source: vmware/clarity

Describe the bug

_A Datagrid with horizontal scrollbar and long text values can produce overlapping text when expandable rows are used._

image

How to reproduce

_https://stackblitz.com/edit/clarity-light-theme-v2-qkuu4k_

Steps to reproduce the behavior:

  1. Go to 'https://clarity-light-theme-v2-qkuu4k.stackblitz.io/'
  2. See overlapping text in columns

Expected behavior

_Column text should not overlap as is the case when no expandable rows are used._

Versions

App

  • Angular: [8]
  • Node: [8.9.4]
  • Clarity: [2.0.0]

Device:

  • Type: [ThinkPad]
  • OS: [Windows 10]
  • Browser [chrome]
  • Version [78.0.3904.97]
@clangular datagrid has workaround needs investigation bug

Most helpful comment

Thanks for the report, something is indeed strange here. Updated to Clarity 2.3.1 and still see it happening, but there seems to be some bizarre calculation problem only for some of the columns. Will need to investigate.

All 7 comments

Thanks for the report, something is indeed strange here. Updated to Clarity 2.3.1 and still see it happening, but there seems to be some bizarre calculation problem only for some of the columns. Will need to investigate.

It looks as if the calculated widths for the headers are shifted by 1 column. The width of header x should be the width of header x+1, etc...

Any progress on this reported bug?

No progress yet, please review our labels to get a sense of what is being worked on or not.

One workaround for now is to put an explicit width if you have an issue with a column like this.

Another workaround

clr-dg-cell {
overflow: hidden;
text-overflow: ellipsis;
}

or

clr-dg-cell element-around-your-text {
overflow: hidden;
text-overflow: ellipsis;
}

https://stackblitz.com/edit/clarity-light-theme-v2-innstx

There is a workaround available for this issue, and we recommend using it for Clarity Angular. We would consider a contribution to address this issue if someone is able to work out a solution. As we build Clarity Core implementations, we expect that this issue won鈥檛 be an issue or will be configurable on the application side. To help us clean up our backlog, we are going to close this with a functional workaround available and suggest you follow updates for Clarity Core for enhancements that can support your use case with Clarity Core components.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

beaker1977 picture beaker1977  路  3Comments

aaronfrost picture aaronfrost  路  3Comments

JohannesRudolph picture JohannesRudolph  路  4Comments

dennitsa picture dennitsa  路  4Comments

reddolan picture reddolan  路  3Comments