deephaven / deephaven-core

Deephaven Community Core
Other
257 stars 80 forks source link

JS API Hierarchical table expand operations don't expand the correct row #6396

Closed niloc132 closed 2 days ago

niloc132 commented 2 days ago

Introduced by #5890.

When scrolled past the first "page" of data, expanding and collapsing rows doesn't apply to the row that the user intended.

Steps to reproduce:

  1. Create a rollup or tree with at least 3x as many rows as would be visible in the UI
    from deephaven import empty_table
    t = empty_table(10000).update(["I=i", "J=i == 0 ? null : (int)(i / 100)"]).tree(id_col="I", parent_col="J")
  2. Expand the root of the tree
  3. Scroll to the bottom of the visible area
  4. Expand the bottom visible row

Expected: more rows are visible past the end of the currently visible rows, and the last visible row is marked as expanded.

Actual: Bottom row is still marked as collapsed, and no other rows are visible.

It is also often possible to find rows that, when expand is clicked, instead rows below them will expand.