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

fitViewportToNodes is broken when graph has only one node #1473

Closed
jacomyal opened this issue Oct 3, 2024 · 0 comments
Closed

fitViewportToNodes is broken when graph has only one node #1473

jacomyal opened this issue Oct 3, 2024 · 0 comments

Comments

@jacomyal
Copy link
Owner

jacomyal commented Oct 3, 2024

@jacomyal I may have stumbled on an edge case with fitViewportToNodes. When there is only one node on the screen calling fitViewportToNodes makes the node disappear.
Even zooming out I can't see the node. If I call reset() it centers back into view though. If there are 2 or more nodes in the view it works as expected for me.

Originally posted by @Rich5 in #1471 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant