allow row_height to be set from the ListBox class

develop
Myk Taylor 2020-08-17 21:14:05 -07:00
parent 19a4d1df5a
commit 8a438c2a55
1 changed files with 2 additions and 0 deletions

@ -155,6 +155,7 @@ ListBox.ATTRS{
on_select = DEFAULT_NIL, on_select = DEFAULT_NIL,
on_select2 = DEFAULT_NIL, on_select2 = DEFAULT_NIL,
select2_hint = DEFAULT_NIL, select2_hint = DEFAULT_NIL,
row_height = DEFAULT_NIL,
} }
function ListBox:preinit(info) function ListBox:preinit(info)
@ -196,6 +197,7 @@ function ListBox:init(info)
end, end,
on_submit2 = on_submit2, on_submit2 = on_submit2,
frame = { l = 0, r = 0 }, frame = { l = 0, r = 0 },
row_height = info.row_height,
} }
} }
end end