Skip to content

Commit

Permalink
Fixed auto-scrolling when a cell is clicked. Closes #5237.
Browse files Browse the repository at this point in the history
  • Loading branch information
freyah4224 committed Oct 23, 2019
1 parent c3ad0b3 commit f1d3be4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rubberduck.Core/UI/Inspections/InspectionResultsControl.xaml
Expand Up @@ -201,7 +201,8 @@
SelectedItem="{Binding SelectedItem}"
SelectionUnit="FullRow"
ItemsSource="{Binding Results, NotifyOnSourceUpdated=True}"
VirtualizingPanel.IsVirtualizingWhenGrouping="True">
VirtualizingPanel.IsVirtualizingWhenGrouping="True"
RequestBringIntoView="InspectionResultsGrid_RequestBringIntoView">
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<Grid>
Expand Down
Expand Up @@ -11,5 +11,10 @@ public InspectionResultsControl()
{
InitializeComponent();
}

private void InspectionResultsGrid_RequestBringIntoView(object sender, System.Windows.RequestBringIntoViewEventArgs e)
{
e.Handled = true;
}
}
}

0 comments on commit f1d3be4

Please sign in to comment.