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

fix for move_to_child_with_index method #268

Merged

Conversation

jordan-brough
Copy link
Contributor

when moving a node downward (but not to the bottom) within its current parent the
move_to_child_with_index method would insert the node in the wrong place.

This is because when moving a node downward the positioning needs to take into account the fact
that the moving node is being removed from its current position.

also, add code to handle a no-op call -- moving a node to the position it's already at -- w/o raising an error.

when moving a node downward (but not to the bottom) within its current parent the
`move_to_child_with_index` method would insert the node in the wrong place.

This is because when moving a node downward the positioning needs to take into account the fact
that the moving node is being removed from its current position.

also, add code to handle a no-op call -- moving a node to the position it's already at -- w/o raising an error.
@jordan-brough
Copy link
Contributor Author

@parndt any thoughts?

@parndt
Copy link
Collaborator

parndt commented Jun 29, 2014

Seems good to me 😄

parndt added a commit that referenced this pull request Jun 29, 2014
…_index

fix for move_to_child_with_index method
@parndt parndt merged commit 164d992 into collectiveidea:master Jun 29, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants