brilaps
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2011
01:40 PM
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

2 REPLIES 2


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2011
02:08 PM
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.
brilaps
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2011
02:26 PM
Re: roGridScreen - Gap above grid items
Brilliant! Thanks for the explanation and the suggestion. Works perfectly.