Forum Discussion

brilaps's avatar
brilaps
Visitor
14 years ago

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

  • 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.
  • Brilliant! Thanks for the explanation and the suggestion. Works perfectly.