Skip to content

bug(Table): incorrect widths and alignment after resizing columns #8478

Description

@Tony-ST0754

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

1、col上有值,非固定列时,th上没有值,然后,table的总宽度的值,与col上值的总和不一致,就会在左右滑动时,固定列就会出现一些奇怪的问题,且列宽的值不是col上的值,比如:col上是100,可能实际是99.x或100.x

Extend Column Fixed Function & Other Bug

  • 左侧有数据列固定时,右侧只有扩展列且固定时,扩展列左侧没有阴影效果
  • 将扩展列放置行头,右侧有固定列时,右侧最后一列固定列style:right=''上的值还是继续将扩展列宽计算了,导致表格所有右侧固定列style:right=''上的值全部不正确,使整个表格显示不正确
  • 将扩展列放置行头,且固定时出现的后续固定列style:left=''上的值不正确没有将前置扩展列宽度计算在内,导致左右滑动表格时列会错位
  • 将扩展列放置行头,且固定时,行号列不固定,多选列不固定,明细行头列不固定时,扩展列及后续固定列style:left=''上的值不正确,导致左右滑动表格时列会错位

Expected Behavior

列拖动改变列宽后,表格宽度不管是在固定表头还是非固定表头下,表格宽度应为全部可见列总和,如果表格宽度的值不是表格中全部可见列的列宽值的总和,在有左、右固定列的情况下,会出现各种奇怪的问题,因此,必须保证这两项一致

Interactive render mode

Interactive Server (Interactive server-side rendering (interactive SSR) using Blazor Server)

Steps To Reproduce

BootstrapBlazorApp1.Server.zip

Exceptions (if any)

No response

.NET Version

NET10.0

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions