Skip to content

Commit 0eb036b

Browse files
committed
Added a comment
[#1062]
1 parent fa74cdf commit 0eb036b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/iris-grid/src/IrisGridRenderer.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ class IrisGridRenderer extends GridRenderer {
187187
return;
188188
}
189189

190+
// This assumes that the engine puts the grouped columns at the start of the
191+
// model, so model and visible index match for grouped columns. If we ever
192+
// add freeze support for tree tables or allow moving the grouped columns,
193+
// this assumption may no longer hold true. If such a change occurs, we'll
194+
// need to revisit this since a single vertical divider may no longer make
195+
// sense.
190196
const lastVisibleGroupColumnIndex = groupedColumns.length - 1;
191197

192198
const columnX = allColumnXs.get(lastVisibleGroupColumnIndex);

0 commit comments

Comments
 (0)