Fix home image size

Fixes #1493
This commit is contained in:
1hitsong 2023-11-22 09:34:25 -05:00
parent a64dc4a9a2
commit ed55fafeb5

View File

@ -188,7 +188,14 @@ sub createLatestInRows(content as dynamic, sizeArray as dynamic)
m.homeSectionIndexes.AddReplace("latestin" + LCase(lib.name).Replace(" ", ""), m.homeSectionIndexes.count) m.homeSectionIndexes.AddReplace("latestin" + LCase(lib.name).Replace(" ", ""), m.homeSectionIndexes.count)
m.homeSectionIndexes.count++ m.homeSectionIndexes.count++
if LCase(lib.collectionType) = "movies"
sizeArray.Push([188, 331])
else if LCase(lib.collectionType) = "music"
sizeArray.Push([261, 331])
else
sizeArray.Push([464, 331]) sizeArray.Push([464, 331])
end if
loadLatest = createObject("roSGNode", "LoadItemsTask") loadLatest = createObject("roSGNode", "LoadItemsTask")
loadLatest.itemsToLoad = "latest" loadLatest.itemsToLoad = "latest"
@ -482,7 +489,6 @@ sub updateLatestItems(msg)
m.homeSectionIndexes.AddReplace(sectionName, rowIndex) m.homeSectionIndexes.AddReplace(sectionName, rowIndex)
m.top.content.insertChild(row, rowIndex) m.top.content.insertChild(row, rowIndex)
updateSizeArray(itemSize, rowIndex)
return return
end if end if