dream-num / univer

Univer is an Isomorphic Full-Stack Framework for Creating and Editing Spreadsheets, Docs, and Slides Across Web and Server
https://univer.ai
Apache License 2.0
7.15k stars 629 forks source link

[Bug] Cell editor position display problem #3579

Closed jerry-f closed 1 month ago

jerry-f commented 1 month ago

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

受影响的包和版本

所有版本,包括最新的0.2.15

复现链接

当在小的单元格编辑之后,内容较少没有问题,能正常编辑, 当在另一个单元格内容很多的时候,编辑,将单元格设置自动换行,并且内容很多,此时,编辑完之后在到其他单元格编辑,这时就出现了问题, 在新的单元格上看不到编辑的内容,实际上时编辑了的。

https://github.com/user-attachments/assets/0c9e98bf-1cfd-4772-b96c-ab25aa1cf888

预期行为

在任何单元格上都能查看到编辑的内容。

实际行为

在内容多的单元格编辑之后,转移到小单元格, 编辑时,不能查看到编辑的光标,也看不到任何编辑的内容。

运行环境

No response

系统信息

System: OS: Windows 11 10.0.22631 CPU: xxx Memory: 6.38 GB / 29.74 GB Binaries: Node: 20.12.2 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.22 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD pnpm: 9.4.0 - C:\Program Files\nodejs\pnpm.CMD Browsers: Chrome: chromedriver.exe chromedriver_win32.zip LICENSE.chromedriver Edge: Chromium (127.0.2651.74) Internet Explorer: 11.0.22621.3527

univer-bot[bot] commented 1 month ago

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

Origin Title: [Bug] Cell editor position display problem

Title: [Bug] Cell editor position display problem


Before you submitted this question, did you check the following?

Affected packages and versions

All versions, including the latest 0.2.15

Recurrence link

After editing a small cell, there is no problem if the content is small and the content can be edited normally. When editing in another cell with a lot of content, set the cell to automatically wrap and there is a lot of content. At this time, after editing, in When editing in other cells, a problem occurs. You cannot see the edited content in the new cell, but it is actually edited.

https://github.com/user-attachments/assets/0c9e98bf-1cfd-4772-b96c-ab25aa1cf888

Expected behavior

Edited content can be viewed in any cell.

Actual behavior

After editing a cell with a lot of content, move to a small cell. During editing, you cannot see the editing cursor, nor can you see any edited content.

Running environment

No response

System information

System: OS: Windows 11 10.0.22631 CPU:xxx Memory: 6.38 GB / 29.74 GB Binaries: Node: 20.12.2 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.22 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD pnpm: 9.4.0 - C:\Program Files\nodejs\pnpm.CMD Browsers: Chrome: chromedriver.exe chromedriver_win32.zip LICENSE.chromedriver Edge: Chromium (127.0.2651.74) Internet Explorer: 11.0.22621.3527

jikkai commented 1 month ago

Could you please provide more specific steps and the correct video or a link to reproduce the issue?


你能重新描述一下具体步骤以及提供正确的视频或者复现链接吗?

hexf00 commented 1 month ago

Could you please provide more specific steps and the correct video or a link to reproduce the issue?

你能重新描述一下具体步骤以及提供正确的视频或者复现链接吗?

可以复现,先粘贴一个长文本,然后编辑上一个单元格

univer-bot[bot] commented 1 month ago

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

Could you please provide more specific steps and the correct video or a link to reproduce the issue?

Can you re-describe the specific steps and provide the correct video or link to reproduce?

It can be reproduced by first pasting a long text and then editing the previous cell.

jerry-f commented 1 month ago

是可以复现的, 浮现的步骤: "先粘贴一个长文本,然后再编辑一个默认的小单元格" 我再试试看能不能上传正确的视频, 好像还是不行~

image

https://github.com/user-attachments/assets/259448f4-7fe3-43df-9e26-dafdc6d7782e

univer-bot[bot] commented 1 month ago

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

It can be reproduced, the following steps are: "First paste a long text, and then edit a default small cell" I'll try again to see if I can upload the correct video, but it still doesn't seem to work~

image

https://github.com/user-attachments/assets/259448f4-7fe3-43df-9e26-dafdc6d7782e