UI Stroke inside of a ScrollingFrame

Hey guys!
I’m trying to achieve sort of a selected clearification, using UIStroke on a button to show that it was selected, like shown here:

However, as you can tell, the stroke gets cropped out for some reason, how can I counter that? can you guys think of an alternative?
Thanks!

4 Likes

Maybe you can move it a little down so it doesnt get cropped

2 Likes

That wouldnt be an option since I was using UIGridLayout.

What I ended up doing was using UIPadding

7 Likes

What kind of ui padding? The object or value?

The object

hvhchxigigxxg filler

Hey, just in case anybody else has the same problem, the solution is to make all your elements double frame. 1st frame can be transparent and the 2nd one a bit on the inside (reduced size). This way if the stroke is outside the frame you just apply it to the interior frame. Padding won’t help, because it will crop the last elements.

3 Likes