From 4175ea2c8c2ef2fd894b92ff54cfd519619f7961 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Thu, 14 Nov 2024 04:05:22 +0000 Subject: [PATCH] Call getWidth on instance --- itemcontroller.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itemcontroller.lua b/itemcontroller.lua index 041db98..ac47199 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -863,7 +863,7 @@ local PAGES = { } } - local rButtonsLeft, rButtonsRight = getCenterPad(requestButtons.getWidth(), state.width) + local rButtonsLeft, rButtonsRight = getCenterPad(requestButtons:getWidth(), state.width) local PADDING_RQC_H = 1 local paddedRequestCount = Padding:new{