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

Alignment issue with adding a child node #15

Closed
strongishllama opened this issue Jul 31, 2018 · 2 comments
Closed

Alignment issue with adding a child node #15

strongishllama opened this issue Jul 31, 2018 · 2 comments

Comments

@strongishllama
Copy link

When adding a new child node to an existing node I'm getting an alignment issue. I am unable to drag the child node anywhere either. Once the parent node has been clicked, dragged and dropped the child node moves into the correct alignment and acts normally.

The code adding a new child.
node.children.push({id: data.id, title: data.title, description: '', is_published: data.is_published});

As you can see the 'Contact' node has a child but it's alignment is out.
first

After the 'Contact' node has been dragged and dropped the child node moves into it's correct alignment.
second

Let me know if you need any more information, thanks in advance!

@phphe
Copy link
Owner

phphe commented Jul 31, 2018

i tried, it works in the latest vesion. check the second tree: the https://codepen.io/phphe/pen/KRapQm

@strongishllama
Copy link
Author

Updating to the latest version fixed it. Thanks again.

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