table: Fix incorrect column selection bg render.
This commit is contained in:
parent
9b51a5b998
commit
a02c981b74
1 changed files with 13 additions and 10 deletions
|
|
@ -395,14 +395,17 @@ where
|
||||||
.id(("table-row", row_ix))
|
.id(("table-row", row_ix))
|
||||||
.w_full()
|
.w_full()
|
||||||
.children((0..cols_count).map(|col_ix| {
|
.children((0..cols_count).map(|col_ix| {
|
||||||
table.col_wrap(col_ix, cx).child(
|
table
|
||||||
|
.col_wrap(col_ix, cx) // Make the row scroll sync with the horizontal_scroll_handle to support horizontal scrolling.
|
||||||
|
.left(horizontal_scroll_handle.offset().x)
|
||||||
|
.child(
|
||||||
table
|
table
|
||||||
.render_cell(col_ix, cx)
|
.render_cell(col_ix, cx)
|
||||||
.flex_shrink_0()
|
.flex_shrink_0()
|
||||||
// Make the row scroll sync with the horizontal_scroll_handle to support horizontal scrolling.
|
|
||||||
.left(horizontal_scroll_handle.offset().x)
|
|
||||||
.child(
|
.child(
|
||||||
table.delegate.render_td(row_ix, col_ix),
|
table
|
||||||
|
.delegate
|
||||||
|
.render_td(row_ix, col_ix),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue