Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table: fix 计算fixed列时数组未扁平化导致宽度计算错误,table内容因width过小而未正常显示的 issue (#22752) #22758

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

yunchuan123
Copy link

@yunchuan123 yunchuan123 commented Dec 4, 2023

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide (中文 | English | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

@yunchuan123 yunchuan123 changed the title Table: fix 计算fixed列时数组未扁平化 导致内容未正常显示的 bug #22752 Table: fix 计算fixed列时数组未扁平化 宽度计算错误导致内容未正常显示的 bug #22752 Dec 4, 2023
@yunchuan123 yunchuan123 changed the title Table: fix 计算fixed列时数组未扁平化 宽度计算错误导致内容未正常显示的 bug #22752 Table: fix 计算fixed列时数组未扁平化导致宽度计算错误,table内容因width过小而未正常显示的 bug (关联问题:#22752) Dec 5, 2023
@yunchuan123 yunchuan123 changed the title Table: fix 计算fixed列时数组未扁平化导致宽度计算错误,table内容因width过小而未正常显示的 bug (关联问题:#22752) Table: fix 计算fixed列时数组未扁平化导致宽度计算错误,table内容因width过小而未正常显示的 issue (#22752) Dec 5, 2023
@yunchuan123
Copy link
Author

table在计算固定列宽度时,没有展开固定列的子列,导致计算结果与实际结果偏差。
例如issue:#22752中,多级表格中,fixed的表格有五个子列,而在计算宽度的时候,只计算了父级一个列的宽度,导致宽度计算错误,造成了只显示一个子列的现象。
修复:使用doFlattenColumns函数展开fixedColumns再进行宽度计算。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant