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: cells are not aligned #276

@atanasster

Description

@atanasster

Describe the bug

The datagrid cells are sometimes not aligned

To reproduce

In the following example witness the Type column - rows y and ...props

<vscode-data-grid>
  <vscode-data-grid-row row-type="header">
    <vscode-data-grid-cell grid-column="1" cell-type="columnheader"> Name </vscode-data-grid-cell>
    <vscode-data-grid-cell grid-column="2" cell-type="columnheader"> Type </vscode-data-grid-cell>
    <vscode-data-grid-cell grid-column="3" cell-type="columnheader"> Parent </vscode-data-grid-cell>
    <vscode-data-grid-cell grid-column="4" cell-type="columnheader"> Value </vscode-data-grid-cell>
    <vscode-data-grid-cell grid-column="5" cell-type="columnheader">
      Description
    </vscode-data-grid-cell>
  </vscode-data-grid-row>
  <vscode-data-grid-row>
    <vscode-data-grid-cell grid-column="1">
      <a href="#">
        <code>y*</code>
      </a>
    </vscode-data-grid-cell>
    <vscode-data-grid-cell grid-column="2">
      <code>number</code>
    </vscode-data-grid-cell>
    <vscode-data-grid-cell grid-column="3">
      <a href="#">
        <code>CandlestickChartLineProps</code>
      </a> </vscode-data-grid-cell
    >\n<vscode-data-grid-cell grid-column="4">
      <code></code> </vscode-data-grid-cell
    >\n<vscode-data-grid-cell grid-column="5"> </vscode-data-grid-cell>
  </vscode-data-grid-row>
  <vscode-data-grid-row>
    <vscode-data-grid-cell grid-column="1">
      <code>...props</code>
    </vscode-data-grid-cell>
    <vscode-data-grid-cell grid-column="2">
        <code>LineProps</code>
    </vscode-data-grid-cell>
    <vscode-data-grid-cell grid-column="3"> </vscode-data-grid-cell>
    <vscode-data-grid-cell grid-column="4">
      <code></code>
    </vscode-data-grid-cell>
    <vscode-data-grid-cell grid-column="5"> </vscode-data-grid-cell>
  </vscode-data-grid-row>
</vscode-data-grid>

Expected behavior

Expected all cells from the same column to be the same size

Screenshots

grab184

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions