|
num_lines_for_manifest_navigator = function(candidates)
|
|
local result = 1
|
|
local x = 5
|
|
for i,def in ipairs(candidates) do
|
|
local width = to_hud_text(def):getWidth()
|
|
if x + width > App.screen.width - 5 then
|
|
result = result+1
|
|
x = 5
|
|
end
|
|
x = x + width + 30
|
|
end
|
|
return result
|
|
end
|