Fix list element sizing
This commit is contained in:
parent
0d096aecde
commit
e86c43ac72
@ -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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user