Changing navigation rule breaks scrollbox rendering

Hi,

we are in the process of migrating to 5.8.

Unfortunately we’ve encountered some issues with our widgets inside horizontal scrollboxes in 5.8 being cut off.

Confusingly, I was able to reproduce the issue in a minimal case by just changing the navigation rules of the scrollbox.

Repro Project is attached.

Please advise.

Regards,

Max

[Attachment Removed]

Steps to Reproduce

  • Load the Reproduction project
  • Open the NewWidgetBlueprint
  • Select the scroll box
  • set any navigation option to custom
  • compile the widget
  • see half the widget disappear
    [Attachment Removed]

Hi,

This should be fixed in CL#55773401. Basically, SScrollPanel::OnPaint needs to be updated to use the render bounds instead of the hit test bounds:

const FSlateRect BoundingRect = ScrollBoxGeometry.GetRenderBoundingRect();The full change linked above adds a CVar as well to revert to the old behavior, if you want to integrate that directly. Let us know if you run into any issues!

[Attachment Removed]