Filling in the gap left by a UIAspectRatioConstraint without scripting

  • I have a frame.
  • It contains a square frame using a UIAspectRatioConstraint which contains a ViewportFrame, the purpose of which is to make said ViewportFrame equidistant from the left, top and right borders.
  • Under the square frame is a ScrollingFrame which contains a long blob of text.
  • The square frame and ScrollingFrame are aligned via a UIListLayout.
  • I cannot fathom how to fit the ScrollingFrame into the frame perfectly - it can spill out or leave a gap depending on the device resolution as the remaining height of the frame is unknown due to the UIAspectRatioConstraint

Any ideas would be greatly appreciated.

As it happens, the engine currently does not support the “fill remaining space” logic and there is no workaround.

Edit: I stand corrected wow

try putting a UIFlexItem inside the ScrollingFrame and set its mode to fill

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.