From 3e654df2ac7a646b618c7fa87f94148e491ee8ac Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Sat, 26 Oct 2024 00:28:18 +0200 Subject: [PATCH] Fix hpad issue in keyboard --- itemcontroller.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itemcontroller.lua b/itemcontroller.lua index 6544088..205a68b 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -548,13 +548,13 @@ local PAGES = { local keyboardWidth = keyboardList:getWidth() keyboardList:setPos(math.floor((screenContainer:getWidth() - keyboardWidth) / 2), screenContainer:getHeight() - keyboardList:getHeight() - bottomBarList:getHeight()) - local filterDisplayedText = fitText(pageState.filter, keyboardList:getWidth() - 2) + local filterDisplayedText = fitText(pageState.filter, keyboardList:getWidth() - (2 * KEYBOARD_HPAD)) local filterText = keyboardList:findById(ID_FILTER_DISPLAY) filterText:setText(filterDisplayedText) local filterPadding = keyboardList:findById(ID_FILTER_PADDING) filterPadding:setPadding{ - right = keyboardList:getWidth() - filterText:getWidth() + right = keyboardList:getWidth() - (2 * KEYBOARD_HPAD) - filterText:getWidth() } keyboardList:setVisible(pageState.displayKeyboard)