Use proper setPos syntax

This commit is contained in:
Gabriel Tofvesson 2024-10-12 20:13:12 +02:00
parent a07a801cab
commit d606eccc15

View File

@ -617,10 +617,7 @@ local PAGES = {
---@diagnostic disable-next-line: redefined-local
local keyboardWidth = keyboardList:getWidth()
keyboardList:setPos{
x = math.floor((screenContainer:getWidth() - keyboardWidth) / 2),
y = screenContainer:getHeight() - keyboardList:getHeight()
}
keyboardList:setPos(math.floor((screenContainer:getWidth() - keyboardWidth) / 2), screenContainer:getHeight() - keyboardList:getHeight())
local filterDisplayedText = #pageState.filter < keyboardWidth and pageState.filter or pageState.filter:sub(#pageState.filter - keyboardWidth + 1, keyboardWidth)
local filterText = keyboardList:findById(ID_FILTER_DISPLAY)