From 8a438c2a5542cf54a2de47e8767d402f50d5b982 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Mon, 17 Aug 2020 21:14:05 -0700 Subject: [PATCH] allow row_height to be set from the ListBox class --- library/lua/gui/dialogs.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/lua/gui/dialogs.lua b/library/lua/gui/dialogs.lua index fb9b8fd63..672d502d1 100644 --- a/library/lua/gui/dialogs.lua +++ b/library/lua/gui/dialogs.lua @@ -155,6 +155,7 @@ ListBox.ATTRS{ on_select = DEFAULT_NIL, on_select2 = DEFAULT_NIL, select2_hint = DEFAULT_NIL, + row_height = DEFAULT_NIL, } function ListBox:preinit(info) @@ -196,6 +197,7 @@ function ListBox:init(info) end, on_submit2 = on_submit2, frame = { l = 0, r = 0 }, + row_height = info.row_height, } } end