Only reposition main axis

This commit is contained in:
Gabriel Tofvesson 2024-10-08 18:14:17 +02:00
parent 027edc1a27
commit ebf49b1df7

View File

@ -12,7 +12,7 @@ local function adjustPositions(elements, vertical, from)
newDims = newDims + getDim(elements[i])
end
local setDim = vertical and function(e, dim) e:setPos(1, dim) end or function(e, dim) e:setPos(dim, 1) end
local setDim = vertical and function(e, dim) e:setY(dim) end or function(e, dim) e:setX(dim) end
for i=from,#elements do
setDim(elements[i], newDims)
newDims = newDims + getDim(elements[i])