diff --git a/itemcontroller.lua b/itemcontroller.lua index 27f0ecc..5238fef 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -521,9 +521,9 @@ local PAGES = { countText:setText(tostring(group:getItemCount())) - local nameTextBudget = mainList:getWidth() - countText:getWidth() - 1 + local nameTextBudget = state.width - countText:getWidth() - 1 local name = fitText(group:getSimpleName(), nameTextBudget) - local padding = mainList:getWidth() - #name - countText:getWidth() + local padding = state.width - #name - countText:getWidth() nameText:setText(name) namePadding:setPadding{ right = padding }