Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Data grid: long headers not aligned with cells #411

@fengtan

Description

@fengtan

Describe the bug

If a data grid has long headers, then those aren't always aligned with cells.

To reproduce

Create a data grid by following the official documentation and specify many long headers with no space.

For instance:

  const row1 = {};
  const row2 = {};
  for(i=1;i<20;i++) {
    row1["aVeryLongHeader"+i] = "value"+i;
    row2["aVeryLongHeader"+i] = "aVeryLongValue"+i;
  };
  document.getElementById("grid").rowsData = [row1, row2];

Expected behavior

Headers and cells should be aligned so you can clearly identify the columns:

proposed

Current behavior

Headers are not aligned with the cells. Note that all cells are aligned so the problem is specific to headers vs regular cells:

current

Desktop (please complete the following information):

  • OS Version: Ubuntu 20.04.5 LTS
  • Toolkit Version: v1.0.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions