I’ve got my cellsize set up like this
It should always be creating a 4x4 grid like this
Unfortunately, if the absolutesize of the parent is uneven, it ends up looking like this
I’ve got my cellsize set up like this
It should always be creating a 4x4 grid like this
Unfortunately, if the absolutesize of the parent is uneven, it ends up looking like this
I just make the CellSize like 0.001 or so smaller. Though this should be fixed/improved (:
Could you post an rbxl with a repro? Want to make sure I understand this correctly.
gridrepro.rbxmx (24.2 KB)
if you insert this into startergui and then resize your window on the x-axis, you should see it happening
thanks for the repro!
Unfortunately there isn’t much we can do about this. Consider the math:
Width of the layout frame is 323 pixels.
323* 0.25 = 80.75 (in reality we can’t have pixels that aren’t whole so this rounds to 81)
81*4=324. This ends up being larger than the frame so the last element in the row has to go.
We could maybe do some special logic for the grid layout, but I’d rather do something like allow some fudging around the edges (you can kind of already do this by setting the grid cell size to have a pixel size of -1).