Forum Discussion
dustinhood
13 years agoVisitor
"TheEndless" wrote:"dustinhood" wrote:
Can someone elaborate on this?
I need 4 rows, the first 3 need to be portrait and the 4th needs to be landscape. I've tried the using the code below with no luck. Any suggestions?
BTW, I also have the ContentType of each item set to movie on the first 3 rows and episode on the 4th.
listStyles = ["landscape","portrait", "portrait", "portrait"]
screen.SetGridStyle("mixed-aspect-ratio")
screen.SetListPosterStyles(listStyles)
I believe you need to call SetupLists prior to calling SetListPosterStyles.
You are correct, putting screen.SetListPosterStyles() after screen.setupLists() did the trick! Thanks TheEndless!!!!
So here it is again for those that are having trouble:
screen.setupLists(categoryList.count())
screen.SetListNames(categoryList)
listStyles = ["landscape","portrait", "portrait", "portrait"]
screen.SetGridStyle("mixed-aspect-ratio")
screen.SetListPosterStyles(listStyles)