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

Text文本超长时,后面的内容覆盖了前面的内容(if text too long,it will overlap previous text in react custom-made node) #3090

Closed
jasontianxie opened this issue Aug 5, 2021 · 4 comments
Labels
Outdate This issue is too old to be resolved

Comments

@jasontianxie
Copy link

jasontianxie commented Aug 5, 2021

在react定义https://g6.antv.vision/zh/docs/manual/middle/elements/nodes/react-node
的节点中使用了多个Text组件,当后面的Text组件中的文本超长时,会覆盖掉前面文本的内容
企业微信截图_20210805112203

@mxz96102
Copy link
Member

mxz96102 commented Aug 5, 2021

请问能提供一下sample吗,我这边无法了解到底是哪个元素Text溢出导致的
(还有就是不建议有大量的Text,性能上有一点问题)

@jasontianxie
Copy link
Author

jasontianxie commented Aug 5, 2021

这里是节点的定义
企业微信截图_20210805143114
这里是注册节点
企业微信截图_20210805143129
文本换行,参考了https://g6.antv.vision/zh/examples/item/label#labelLen1
上面那个map循环中最后一个Text中的文本超长了

@jasontianxie
Copy link
Author

目前想到的是动态设置marginTop ?
企业微信截图_20210805145002

@Aarebecca Aarebecca added the Outdate This issue is too old to be resolved label Dec 8, 2023
Copy link

github-actions bot commented Dec 8, 2023

This issue has been closed because it has been outdate for a long time.
Please open a new issue if you still need help.
这个 issue 已经被关闭,因为 它已经过期很久了
如果你仍然需要帮助,请创建一个新的 issue。

@github-actions github-actions bot closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Outdate This issue is too old to be resolved
Projects
None yet
Development

No branches or pull requests

3 participants