Fix hpad issue in keyboard
This commit is contained in:
parent
3ed702a1b5
commit
3e654df2ac
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user