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

自定义组件开启resizing后选择框宽高都为1px #3706

Closed
bighhhh opened this issue Jun 25, 2023 · 3 comments
Closed

自定义组件开启resizing后选择框宽高都为1px #3706

bighhhh opened this issue Jun 25, 2023 · 3 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@bighhhh
Copy link

bighhhh commented Jun 25, 2023

Describe the bug

官网自定义开关节点开启resizing后,选中节点选择框的宽高都是1px

Your Example Website or App

https://antv-x6.gitee.io/zh/examples/node/custom-node#switch

Steps to Reproduce the Bug or Issue

https://antv-x6.gitee.io/zh/examples/node/custom-node#switch

Expected behavior

正常应该是选择框大小跟节点大小一样

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 2.11.1]

Additional context

微信图片_20230625180952

@NewByVector
Copy link
Contributor

是因为节点定义的时候没有指定宽高,所以 resizing 的尺寸不对,而且在这个图中,所有元素的宽高都是绝对尺寸,是不能通过 resizing 来改变大小的。

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Jun 28, 2023
@bighhhh
Copy link
Author

bighhhh commented Jun 29, 2023

是因为节点定义的时候没有指定宽高,所以 resizing 的尺寸不对,而且在这个图中,所有元素的宽高都是绝对尺寸,是不能通过 resizing 来改变大小的。

好的,谢谢

@bighhhh bighhhh closed this as completed Jun 29, 2023
@x6-bot
Copy link
Contributor

x6-bot bot commented Jun 29, 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 Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

2 participants