PR #6718: Scroll the Class Viewer to the selected item on refresh (Contributed by moppius)

#rb jason.stasik
#jira UE-89371

[CL 11642082 by Jason Stasik in 4.25 branch]
This commit is contained in:
moppius
2020-02-26 15:08:29 -05:00
committed by Jason Stasik
parent 0abd818462
commit 415801f5ff

View File

@@ -2671,6 +2671,13 @@ void SClassViewer::Tick( const FGeometry& AllottedGeometry, const double InCurre
{
ExpandRootNodes();
}
// Scroll the first item into view if applicable
const TArray<TSharedPtr<FClassViewerNode>> SelectedItems = GetSelectedItems();
if (SelectedItems.Num() > 0)
{
ClassTree->RequestScrollIntoView(SelectedItems[0]);
}
}
if (bPendingSetExpansionStates)