Skip to content

Commit

Permalink
Fixed removing node from supernode after layout transition when autom…
Browse files Browse the repository at this point in the history
…aticallyManagesSubnodes is disabled.
  • Loading branch information
atitovdev committed May 23, 2018
1 parent 8b890f0 commit 142540c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Private/ASLayoutTransition.mm
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ - (void)applySubnodeRemovals
// In this case we should only remove the subnode if it's still a subnode of the _node that executes a layout transition.
// It can happen that a node already did a layout transition and added this subnode, in this case the subnode
// would be removed from the new node instead of _node
[subnode _removeFromSupernodeIfEqualTo:_node];
if (_node.automaticallyManagesSubnodes) {
[subnode _removeFromSupernodeIfEqualTo:_node];
}
}
}

Expand Down

0 comments on commit 142540c

Please sign in to comment.