Fix to aspect ratio

This commit is contained in:
Jimi 2023-11-12 07:45:13 -07:00
parent fea0335d88
commit 0e1cf6c664
2 changed files with 6 additions and 1 deletions
components/home

@ -96,8 +96,8 @@ sub itemContentChanged()
m.itemPoster.uri = itemData.thumbnailURL
else
m.itemPoster.uri = ImageURL(itemData.json.ChannelId)
m.itemPoster.loadDisplayMode = "scaleToFill"
end if
m.itemPoster.loadDisplayMode = "scaleToFill"
' Set Episode title if available
if isValid(itemData.json.EpisodeTitle)

@ -509,11 +509,15 @@ sub updateOnNowItems()
' remake row using the new data
row = CreateObject("roSGNode", "HomeRow")
row.title = tr("On Now")
itemSize = [464, 331]
row.imageWidth = 464
for each item in itemData
row.usePoster = false
if (not isValid(item.thumbnailURL) or item.thumbnailURL = "") and isValid(item.json) and isValid(item.json.imageURL)
item.thumbnailURL = item.json.imageURL
row.usePoster = true
row.imageWidth = 180
itemSize = [188, 331]
end if
item.usePoster = row.usePoster
item.imageWidth = row.imageWidth
@ -521,6 +525,7 @@ sub updateOnNowItems()
end for
' replace the old row
updateSizeArray(itemSize, m.homeSectionIndexes.livetv, "replace")
m.top.content.replaceChild(row, m.homeSectionIndexes.livetv)
end if