Expose padding function
This commit is contained in:
parent
b5137a4477
commit
0af9460410
1 changed files with 10 additions and 9 deletions
|
@ -177,7 +177,7 @@ local function layout_retained_mode(self, t, constructor, string_argument_to_tab
|
|||
|
||||
-- finally: return layout with iterator
|
||||
self:pop()
|
||||
layout.item = function(self, i)
|
||||
layout.cell = function(self, i)
|
||||
if self ~= layout then -- allow either colon or dot syntax
|
||||
i = self
|
||||
end
|
||||
|
@ -208,6 +208,7 @@ local instance = Layout.new()
|
|||
return setmetatable({
|
||||
new = Layout.new,
|
||||
reset = function(...) return instance:reset(...) end,
|
||||
padding = function(...) return instance:padding(...) end,
|
||||
push = function(...) return instance:push(...) end,
|
||||
pop = function(...) return instance:pop(...) end,
|
||||
row = function(...) return instance:row(...) end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue