Hey,
So, I’m trying to create a grid layout for a part of my UI, that can be scrolled as it is possible for the elements it contains to be more than the visible area. The issue I am having right now though is that, if I put a Wrap Box or Uniform Grid within the scroll box, the scroll functionality stops working. From stepping through the code, it seems that this is caused by SScrollBox::OnNavigation:
if ( FocusedChildIndex >= 0 && FocusedChildIndex < Children.Num() )
{
TSharedRef<SWidget> NextFocusedChild = Children[FocusedChildIndex].GetWidget();
ScrollDescendantIntoView(MyGeometry, NextFocusedChild, false);
return FNavigationReply::Explicit(NextFocusedChild);
}
The FocusedChildIndex variable is set to 1, and the Children.Num() value is also 1 (due to the scroll box “only” containing the WrapBox or Uniform Grid Panel, and not counting all of its descendants).
Is there any way to get the set up that I want in the current version of the engine? I have looked at the most recent code on Github and this doesn’t seem to have been changed.