From ebf49b1df7e868e8249ab7474293ffcb39166d97 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Tue, 8 Oct 2024 18:14:17 +0200 Subject: [PATCH] Only reposition main axis --- gfx/list.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/list.lua b/gfx/list.lua index a7b74e4..d7fa10f 100644 --- a/gfx/list.lua +++ b/gfx/list.lua @@ -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])