Cleaned up and fixed some tab issues
This commit is contained in:
parent
99fade6625
commit
67f1d33ac9
2 changed files with 44 additions and 47 deletions
|
@ -47,7 +47,8 @@ local Grow = {
|
|||
right = { 1, 0}
|
||||
}
|
||||
|
||||
-- {grow = grow, spacing = spacing, size = size, pos = pos, draw = draw, border = bool, bkg = bool, padding = padding}
|
||||
-- {grow = grow, spacing = spacing, size = size, pos = pos, draw = draw,
|
||||
-- border = bool, bkg = bool, padding = padding}
|
||||
local function push(info)
|
||||
|
||||
if not core then core = require(BASE .. 'core') end
|
||||
|
@ -112,10 +113,6 @@ local function advance(pos, size)
|
|||
current.pos[2] = pos[2] + current.grow[2] * (size[2] + current.spacing)
|
||||
end
|
||||
|
||||
-- adjust for padding
|
||||
--pos[1] = pos[1] + current.pad
|
||||
--pos[2] = pos[2] + current.pad
|
||||
|
||||
return pos, size
|
||||
end
|
||||
|
||||
|
@ -134,7 +131,7 @@ local function getRect(pos, size)
|
|||
pos[1] = pos[1] + current.pos[1]
|
||||
pos[2] = pos[2] + current.pos[2]
|
||||
|
||||
local pos, size = advance(pos, size)
|
||||
pos, size = advance(pos, size)
|
||||
pos[1] = pos[1] + current.pad
|
||||
pos[2] = pos[2] + current.pad
|
||||
return pos, size
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue