Skip to content

Table 组件设置固定列宽,实际列宽与设置值有偏差 #3659

@Jiang2020426

Description

@Jiang2020426

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

当Table组件显示的列比较少时,且设置了固定列宽时,且设置的列宽总和是大于Table总宽度(水平滚动条已出现)
8.4.1版本:demo中,设置的用户名Name,宽度为60,Table实际渲染宽度为60px(正确)
8.6.0版本:demo中,设置的用户名Name,宽度为60,Table实际渲染宽度为78px(有一定偏差)
2
1

3

Expected Behavior

8.6.0版本:当设置的总列宽大于Table总宽度,设置Name宽度为60,应该渲染宽度为60

Steps To Reproduce

BootstrapBlazorTable.zip
以上为2个版本的demo

Exceptions (if any)

No response

.NET Version

NET8

Anything else?

No response

Metadata

Metadata

Assignees

Labels

questionQuestion that needs to be answered

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions