[columns,rows] Remove superfluous widget types, leave containers as Layouts.

This commit is contained in:
2022-08-16 09:49:14 +02:00
parent cfdea6c990
commit e70537142e
2 changed files with 5 additions and 11 deletions

View File

@ -1,10 +1,7 @@
local BASE = (...):gsub('rows')
local BASE = (...):gsub('rows', '')
local Layout = require(BASE..'layout')
local Rows = setmetatable({}, Layout)
Rows.__index = Rows
-- Advance position to next row,
-- given current position, widget dimensions and padding.
@ -12,8 +9,8 @@ local function rowadvance(x,y, ww,wh, padding)
return x, y + wh + padding
end
function Rows.new(args)
local self = setmetatable(Layout.new(args), Rows)
function Rows(args)
local self = Layout.new(args)
self.advance = rowadvance
self.prev = 'up'