Merge pull request #19 from SlimeBOOS/fix-row-layout-typo

Fix typo in row layout.
This commit is contained in:
Elmārs 2021-07-22 16:01:17 +03:00 committed by GitHub
commit 46a9ae4b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,8 +17,8 @@ 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 + vpad carriagePos = carriagePos + w + hpad
end end
end end
end end