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])