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: 
brilaps
Visitor

roGridScreen - Gap above grid items

When using SetGridStyle with anything other than flat-movie or flat-portrait a large gap is left at the top of the screen before the first row. It looks like an empty row. This seems like a bug... am I missing something? To verify it wasn't something specific to my application I took the basic simplegrid example and only modified the gridstyle variable in SimpleGrid.brs Main():


'************************************************************
'** Application startup
'************************************************************
Sub Main()

'initialize theme attributes like titles, logos and overhang color
initTheme()

'gridstyle = "Flat-Movie"
gridstyle = "flat-landscape"

'set to go, time to get started
while gridstyle <> ""
print "starting grid style= ";gridstyle
screen=preShowGridScreen(gridstyle)
gridstyle = showGridScreen(screen, gridstyle)
end while

End Sub


0 Kudos
2 REPLIES 2
RokuChris
Roku Employee
Roku Employee

Re: roGridScreen - Gap above grid items

By default, the top row of a grid always gets the initial focus. With landscape oriented posters, the focused row is actually the second visible row. I usually set the focus to the second row when first displaying a grid to avoid that dead space.
0 Kudos
brilaps
Visitor

Re: roGridScreen - Gap above grid items

Brilliant! Thanks for the explanation and the suggestion. Works perfectly.
0 Kudos