From 28c072d9c6c6e1c156ef663433d8d3763a65aaa5 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 12 Dec 2024 17:40:25 +0800 Subject: [PATCH] table: Fix incorrect column offset when have fixed columns. (#490) --- crates/ui/src/table.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ui/src/table.rs b/crates/ui/src/table.rs index d7bdb1f2..5a9d1347 100644 --- a/crates/ui/src/table.rs +++ b/crates/ui/src/table.rs @@ -1039,6 +1039,7 @@ where move |table, visible_range: Range, cx| { visible_range .map(|col_ix| { + let col_ix = col_ix + left_cols_count; table.render_col_wrap(col_ix, cx).child( table.render_cell(col_ix, cx).child( table.delegate.render_td(row_ix, col_ix, cx),