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

initially center tree on one node #7

Closed
martesabt opened this issue Mar 14, 2022 · 2 comments
Closed

initially center tree on one node #7

martesabt opened this issue Mar 14, 2022 · 2 comments

Comments

@martesabt
Copy link

Hi,
I would like to know if it's possible to initially center the tree view on one node.

If it's not possible it could be a good improvement.

Thanks!

@ZornitsaPesheva
Copy link
Collaborator

You can use this:

family.on('init', function(){
    family.center(5);
})

@martesabt
Copy link
Author

Yes, that's what I needed!

Many thanks!

@martesabt martesabt changed the title Initilly center tree on one node initially center tree on one node Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants