Update row.lua again, so that row elements are not offset.

This commit is contained in:
SlimeBOOS 2021-07-21 23:13:56 +03:00 committed by GitHub
parent efe3cf577a
commit 8ac9c72d44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ function row:draw(x, y, width, height, children, hpad, vpad, alignX)
if children then if children then
for i, e in ipairs(children) do for i, e in ipairs(children) do
local w, _ = e:getSize() local w, _ = e:getSize()
e:draw(x+carriagePos+hpad, y+vpad) e:draw(x+carriagePos, y+vpad)
carriagePos = carriagePos + w + hpad carriagePos = carriagePos + w + hpad
end end
end end