Skip to content

Commit 65597a5

Browse files
authored
DYN-8876 Make node context menu child of main dynamo window (DynamoDS#16462)
1 parent 8c7ddef commit 65597a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DynamoCoreWpf/Views/Core/NodeView.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,6 +2162,7 @@ private void DisplayNodeContextMenu(object sender, RoutedEventArgs e)
21622162
grid.ContextMenu = MainContextMenu;
21632163
grid.ContextMenu.Visibility = Visibility.Visible;
21642164
MainContextMenu.DataContext = viewModel;
2165+
MainContextMenu.PlacementTarget = grid;
21652166
MainContextMenu.Closed += MainContextMenu_OnClosed;
21662167
MainContextMenu.IsOpen = true;
21672168
e.Handled = true;

0 commit comments

Comments
 (0)