diff --git a/itemcontroller.lua b/itemcontroller.lua index 487584b..ab0f995 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -539,7 +539,8 @@ local PAGES = { } end - local keyboardWidth = 0 + local KEYBOARD_HPAD = 1 + local keyboardWidth = KEYBOARD_HPAD * 2 for _,line in ipairs(keyboardLines.lines) do local keyLineList = charInputKeyList(line[1], line.backspace) keyboardWidth = math.max(keyboardWidth, keyLineList:getWidth()) @@ -548,10 +549,10 @@ local PAGES = { table.insert(keyboardLines, 1, Text:new{ id = ID_FILTER_DISPLAY, text = "" }) - local keyboardList = List:new{ + local keyboardList = Padding:new{ bgColor = colors.black, left = KEYBOARD_HPAD, right = KEYBOARD_HPAD, element = List:new{ [Orientation:getId()] = Orientation.Vertical, [Children:getId()] = keyboardLines - } + }} local screenContainer = Container:new{ [Children:getId()] = {