Fix list element sizing

This commit is contained in:
Gabriel Tofvesson 2024-10-25 18:33:31 +02:00
parent 0d096aecde
commit e86c43ac72

View File

@ -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 }