Skip to content

Commit

Permalink
fix(#3062): 修复计算固定列时未忽略隐藏列宽度问题
Browse files Browse the repository at this point in the history
link #3062
  • Loading branch information
ArgoZhang committed Mar 15, 2024
1 parent d1bbf04 commit eabcbf9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/BootstrapBlazor/Components/Table/Table.razor.Sort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,11 @@ string GetFixedHeaderStyleString() => IsFixedHeader
}
while (index > start)
{
width += Columns[start++].Width ?? defaultWidth;
var column = Columns[start++];
if (column.Visible)
{
width += column.Width ?? defaultWidth;
}
}
return $"left: {width}px;";
}
Expand Down

0 comments on commit eabcbf9

Please sign in to comment.