Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

List GUI with UIListLayout too big and clustered?

Asked by
RafDev 109
7 years ago

On another question, I was told to use ROBLOX's new UIListLayout. I used the code below:

scrollingFrame.CanvasSize = UDim2.new(1,0,0,20)
local itemLabel = Instance.new("TextLabel")
itemLabel.ZIndex = 7
itemLabel.BackgroundTransparency = 1
itemLabel.BorderSizePixel = 0
itemLabel.Font = Enum.Font.SourceSans
itemLabel.TextScaled = true
itemLabel.TextColor3 = Color3.fromRGB(255,255,255)
itemLabel.TextStrokeColor3 = Color3.fromRGB(51,51,51)
itemLabel.TextStrokeTransparency = 0
itemLabel.Text = "Item Name"
itemLabel.Name = itemLabel.Text
itemLabel.Parent = scrollingFrame

However, everything became very big and clustered. Example

This most likely has a very simple solution, I just have never used this before.

Thank you in advance

0
Why not use this as a background for your UI, this looks awesome. AdvancedCode 136 — 7y
0
Have you checked to see if the FillDirection of the UIListLayout is set to vertical instead of horizontal? Spongocardo 1991 — 7y
0
It's Vertical, that's not the problem @Spongocardo RafDev 109 — 7y

Answer this question