Skip to content

Commit

Permalink
- Fix: AfterExpand and AfterCollapse handling were reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
zetoken committed Mar 21, 2017
1 parent 5f49f22 commit c9b5c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JsonTreeView/Controls/JTokenTreeUserControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ public void UpdateSelected(string jsonString)
private void OnJsonTreeViewAfterCollapse(object sender, TreeViewEventArgs eventArgs)
{
var node = eventArgs.Node as IJsonTreeNode;
node?.AfterExpand();
node?.AfterCollapse();
}

private void OnJsonTreeViewAfterExpand(object sender, TreeViewEventArgs eventArgs)
{
var node = eventArgs.Node as IJsonTreeNode;
node?.AfterCollapse();
node?.AfterExpand();
}

private void OnJsonTreeViewAfterSelect(object sender, TreeViewEventArgs eventArgs)
Expand Down

0 comments on commit c9b5c38

Please sign in to comment.