No matter how I resize this thing, the 11th one never fits.
The GUI grid layout size and padding never change past being initialized by the following script:
(Get size of the text on the screen, see how many can fit on the screen, fill in the banner, slightly adjust banner to fit the last one so that the screen is completely covered).
-- Create flowing banner (but don't make it move yet)
local banner = pMenu.bannerTemplate:Clone()
banner.Visible = true
banner.Name = "banner"
banner.Parent = pMenu
banner:FindFirstChild("nameTemplate"):Destroy()
-- Create persona name template
local textTemplate = pMenu.bannerTemplate.nameTemplate:Clone()
textTemplate.Text = string.upper(personaName)
textTemplate.Name = "personaName"
textTemplate.Visible = true
textTemplate.Parent = banner --IMPORTANT VVVVVVVVVVVVVVVVVVVV
local absTextSize = textServ:GetTextSize(string.upper(personaName), textTemplate.TextSize, textTemplate.Font, pMenu.bannerTemplate.nameTemplate.AbsoluteSize)
banner.UIGridLayout.CellSize = UDim2.new(absTextSize.X/game.Workspace.CurrentCamera.ViewportSize.X, 0, 1, 0)
-- Find new size with padding, resize banner
local count = math.ceil(1/banner.UIGridLayout.CellSize.X.Scale)
local newBannerSizeX = count * (banner.UIGridLayout.CellSize.X.Scale)
banner.Size = UDim2.new(newBannerSizeX, 0, pMenu.bannerTemplate.Size.Y.Scale, 0)
NOTE: The lines below the one commented “IMPORTANT” are the only one I think really affect what I’m doing. The rest is context (unless it turns out not to be).