Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
cnmeyer1980
Visitor

Adding a new row in Hero Grid Channel

Hi everyone, 

I hope you're all well 🙂

This weekend I finally started to put together my first ROKU channel and are using the Hero Grid Channel template/code located here:

https://github.com/rokudev/hero-grid-channel

I'm trying to make all the thumbnails under the main row the same generic size (i.e.; not poster) - I've changed the dimensions for this row and it now shows the correct dimensions, but, under it has created a gap about the same size as the other rows?

All very odd and I reckon I must be doing something obviously wrong.

If anyone has any tips, then I would love to know what I could do to fix this 🙂

I'm not actually at my machine that I code at at the moment, however, I'm more than happy to send over on here script/code if anyone wants to have a look to see what I maybe doing wrong (hopefully its simple/obvious to those that know):

The code from GitHub is:
https://github.com/rokudev/hero-grid-channel

Many thanks,
Chris 🙂
0 Kudos
3 REPLIES 3
tangotango
Visitor

Re: Adding a new row in Hero Grid Channel

Hi Chris,

I'm using the Hero-Grid-Channel as my basis:

https://github.com/rokudev/hero-grid-channel

But not seeing any replies. Your post has been here for 7 months with no reply so I'm not very encouraged.

I'm going to look into another basic channel template to see if I get better results. I'll post if I find anything.

T
0 Kudos
paullegrand
Visitor

Re: Adding a new row in Hero Grid Channel

Hey,

You need to change rowHeights in the xml file as well. I was doing something similar - take a look at what I changed mine to, and maybe that will help.

rowHeights="[500,300,300]"
rowItemSize="[[500,300],[375,197],[375,197],[375,197]]"
0 Kudos
sharkieSBS
Newbie

Re: Adding a new row in Hero Grid Channel

If your rowHeights and rowItemSize don't change, I think you only have to add them as far as the differences occur.

So if there's only one row that's larger - then you can streamline your code to
rowHeights="[500,300]"
rowItemSize="[[500,300],[375,197]]"


Has anyone found differently?
_______________________________________________________________________________
Craig Sharkie
Connected TV Lead, Engineering – EDS & OD
sbs.com.au
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.