Skip to content

Commit 9199334

Browse files
committed
Fixed auto-scrolling bug. Closes #5133.
1 parent 8c3e28b commit 9199334

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Rubberduck.Core/UI/UnitTesting/TestExplorerControl.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@
354354
ItemsSource="{Binding Tests}"
355355
SelectionMode="Extended"
356356
ShowGroupingItemCount="True"
357-
InitialExpandedState="True">
357+
InitialExpandedState="True"
358+
RequestBringIntoView="TestGrid_RequestBringIntoView">
358359
<DataGrid.Columns>
359360
<DataGridTemplateColumn Header="{Resx ResxName=Rubberduck.Resources.UnitTesting.TestExplorer, Key=TestExplorer_Outcome}">
360361
<DataGridTemplateColumn.CellTemplate>

Rubberduck.Core/UI/UnitTesting/TestExplorerControl.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@ public TestExplorerControl()
99
{
1010
InitializeComponent();
1111
}
12+
13+
private void TestGrid_RequestBringIntoView(object sender, System.Windows.RequestBringIntoViewEventArgs e)
14+
{
15+
e.Handled = true;
16+
}
1217
}
1318
}

0 commit comments

Comments
 (0)