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

[Bug]  pivotTable's addField interface restored table, format problem, width is very narrow, not suitable #4634

Open
2 tasks done
Gdutyong opened this issue Feb 13, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Gdutyong
Copy link

在您提交此问题之前,您是否检查了以下内容?

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

受影响的包和版本

0.5.5

复现链接

Image

pivotTable的addField接口复原的表格,格式有问题,宽度很窄,没适配

预期行为

pivotTable的addField接口复原的表格,表格宽度应该正常适配的

实际行为

pivotTable的addField接口复原的表格,格式有问题,宽度很窄,没适配

运行环境

Chrome

系统信息

No response

@univer-bot univer-bot bot added the bug Something isn't working label Feb 13, 2025
@univer-bot univer-bot bot changed the title [Bug]  pivotTable的addField接口复原的表格,格式有问题,宽度很窄,没适配 [Bug]  pivotTable's addField interface restored table, format problem, width is very narrow, not suitable Feb 13, 2025
@univer-bot
Copy link

univer-bot bot commented Feb 13, 2025

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug]  pivotTable的addField接口复原的表格,格式有问题,宽度很窄,没适配

Title: [Bug]  pivotTable's addField interface restored table, format problem, width is very narrow, not suitable


Have you checked the following before you submitted this question?

  • Is this really a problem?
  • I've searched in Github Issues but found no similar questions.

Affected packages and versions

0.5.5

Reproduce link

Image

The table restored by the addField interface of pivotTable has a problem with the format and the width is very narrow and it does not match.

Expected behavior

The table restored by the addField interface of pivotTable, the table width should be adapted normally.

Actual behavior

The table restored by the addField interface of pivotTable has a problem with the format and the width is very narrow and it does not match.

Running environment

Chrome

System Information

No response

@VicKun4937
Copy link
Contributor

we may add a new api for pivot table to autofit the column width

@VicKun4937
Copy link
Contributor

VicKun4937 commented Feb 17, 2025

@Gdutyong
we are considering add an api in the future. Currently, you can use following api instead:

Image

https://reference.univer.ai/en-US/classes/FWorksheet#setcolumnautowidth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants