palantir/blueprint

`Table2` column header does not re-render correctly on size change

开放

#5,936 创建于 2023年2月10日

 (3 条评论) (0 个反应) (0 位负责人)TypeScript (2,167 个派生)batch import
P2Package: tableType: bughelp wanted

仓库指标

星标
 (20,263 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Code Sandbox

Link to a minimal repro (fork this code sandbox): https://codesandbox.io/s/gallant-tree-hch623?file=/src/index.tsx

Steps to reproduce

  1. create a basic Table2 with columnHeaderCellRenderer that changes its height depending on some state
  2. update state and observe that the header size is not re-rendered correctly

(even if the dependency's added to the cellRendererDependencies prop)

Actual behavior

Columns header changes its height, but does not reposition any other row or columns.

Expected behavior

Should reposition all cells / headers upon size change.

Possible solution

TBD

贡献者指南