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

Edge设置label换行后label不显示 #3892

Closed
dlspacezero opened this issue Sep 6, 2023 · 5 comments
Closed

Edge设置label换行后label不显示 #3892

dlspacezero opened this issue Sep 6, 2023 · 5 comments

Comments

@dlspacezero
Copy link

问题描述

正常情况:
image

label不显示,异常的情况:
image

重现链接

https://codesandbox.io/s/smoosh-lake-5lq826?file=/index.ts

重现步骤

预期行为

边的label超出一定宽度时候,能够换行

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 6, 2023

👋 @dlspacezero

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@qiufeihong2018
Copy link
Contributor

@dlspacezero 有个临时方案:你可以在textWrap里加入text,参考这个https://codesandbox.io/s/fix-edgeshe-zhi-labelhuan-xing-hou-labelbu-xian-shi-3892-6ff3gx?file=/index.ts。

@dlspacezero
Copy link
Author

文字都挤到一块去了,是因为没有设置label的高度嘛,不过我已经采用了g6的方案https://g6.antv.antgroup.com/zh/examples/item/label#labelLen1

@qiufeihong2018
Copy link
Contributor

@dlspacezero 对,要设置高度,不然可能获取到的高度为0

NewByVector pushed a commit that referenced this issue Sep 11, 2023
#3896)

fix: edge does not display the label after setting the label and textWrap (#3892)

Co-authored-by: qiufeihong <[email protected]>
@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 2, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants