WHY AND HOW CAN I FIX THE UI OUTLINE CLIPPING OFF THE SCROLLING FRAME?
ive tried making the frame wider and taller and my script isnt affecting it is it my UI grid layout?
Put the BoarderMode property on the shop swords to ‘Inset’. Unless you use Ui stroke.
Yeah im using ui stroke for this
Well, there are some options like using UIPadding and other techniques, but the easiest way would be to create a ‘Frame’ that is slightly larger and place the item Template inside it with a scale value such as UDim2.fromScale(0.9, 0.9).
With this, you can even animate the objects and have more flexibility.
Now, the reason this happens is because the Scrolling Frame only takes into account the size of the Frame and not the UIStroke.
Alright ill do that thanks for the help
uipadding is the easiest
You can have a frame that is all black and parent the shop sword button to it. The actual shop button will be slightly smaller than the parent (A black Frame) to create the illusion that it’s a outline. The black frame will have the children of the round corner and the actual button.
This solution may require recoding though.
Yes, it’s the easiest way, but it usually causes problems if you use Automatic Canvas Size.
weird, i havent noticed any problems when i use it
yeah i really dont feel like rewriting my script rn but that would work now that im thinking about it.
The problem usually occurs when you use UIPadding with Scale; it tends to increase the distance and cut off the items below.
Here’s a video demonstrating the issue.
I haven’t tried this before, but maybe putting the scroll frame in a frame with clip descendants could work. By making the Y size of the scroll frame a little small and moving the scroll frame down so there is a little space at the top for the outline to render but will still clip the bottom part because it is going beyond the frames size. Clip descendants for frame, but not for the scroll frame.
This could be a bit confusing.
yall i just had to center it in the ui grid layout lmao
Wait… maybe clip descendants on the menu but not on scroll frame could work. But the the buttons could be seen under the shop text label unless you give it a background and change z index.
i just tried that too it worked
use ui paddding. use it on the top left and right
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.