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

使用@antv/x6-plugin-scroller插件后,节点的默认定位x:0,y:0不就不在左上角了 #4132

Closed
alamhubb opened this issue Jan 3, 2024 · 3 comments

Comments

@alamhubb
Copy link

alamhubb commented Jan 3, 2024

Describe the bug

使用@antv/x6-plugin-scroller插件后,节点的默认定位x:0,y:0不就不在左上角了

不开启,scroller位置正确

image

    graph.use(
        new Scroller({
          enabled: true,
          pannable: true
        }),
    )

开启后

image

位置异常,跑右上角去了

Your Example Website or App

https://stackblitz.com/edit/vitejs-vite-rdk5bt?file=package.json,src%2FApp.vue,src%2Fcomponents%2FHelloWorld.vue&terminal=dev

Steps to Reproduce the Bug or Issue

使用@antv/x6-plugin-scroller插件后,节点的默认定位x:0,y:0不就不在左上角了

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

No response

@cnyballk
Copy link
Contributor

cnyballk commented Jan 3, 2024

给container设置一下跟可视窗口一样的宽高呗

@alamhubb
Copy link
Author

alamhubb commented Jan 3, 2024

给container设置一下跟可视窗口一样的宽高呗

好的 谢谢

@alamhubb alamhubb closed this as completed Jan 3, 2024
@x6-bot
Copy link
Contributor

x6-bot bot commented Jan 3, 2025

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 Jan 3, 2025
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

2 participants