You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user