How do I fix this?

Hello Developers! Below are pictures of an issue I have. If I have a UIStroke on a Frame/Button/Image, and it is in the UIListLayout or UIGridLayout AND is a child of a Scrolling Frame, the stroke looks like this on the edges. How do I fix this?

image

image

If you use UIListLayout, add an invisible object to make a space.

1 Like

What would I do for a UIGridLayout?

Something similar:

  1. Add an invisible Frame (light blue square)
  2. Add a Frame with AutomaticSize in Y(green frame)
  3. Add the Frame with UIStroke in the Frame with AutomaticSize.

The grid will have to be sized in pixels, but this can be solved using mathematics.


You can also do the same, but with UIListLayout:

  1. Create frames that are as big in X as the scroll, scale (1, Y),
  2. Script that accommodates the smaller Frames in each long Frame.

Usually happens in scrolling frames for me, add a UIPadding element and set PaddingTop to the something like 1.

1 Like

Thanks! Using UIPadding worked!

1 Like

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