Only reposition main axis
This commit is contained in:
parent
027edc1a27
commit
ebf49b1df7
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user