americosfacebook / googletv-issues

Automatically exported from code.google.com/p/googletv-issues
0 stars 0 forks source link

supporting D-pad navigation within HTML5: long lists? #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Do the libraries supplied by Google for supporting D-pad navigation within 
HTML5 handle long lists?

Looking for examples, I came across a page at Khan Academy that uses the jquery 
flavor of the libraries:

http://www.khanacademy.org/gtv/

When viewing that page on Google TV, I see a problem navigating down the list 
with the D-pad down-arrow key. Navigation just stops at a certain cell 
(Algebra:Logarithms), refusing to go further down.

What could be the problem? The source code looks fine--there isn't much besides 
the library code--as it creates well-formed DIV tags to make up the long list. 
I tried copying files locally and replacing the libraries with the most 
recently published copy (from 2/2011)--no change.

The bug is described on the Khan issues site 
http://code.google.com/p/khanacademy/issues/detail?id=9881 , along with another.

Original issue reported on code.google.com by larha...@gmail.com on 23 Mar 2012 at 11:39

GoogleCodeExporter commented 8 years ago
Indeed the JS file has something hardcoded, namely the number of rows per page. 
 It's in the index.js file.

  var behaviors = {
    itemsPerRow: 1,
    rowsPerPage:20
  };

The rowsPerPage is set at 20 so now that Khan backend returns a long list of 49 
items, scrolling down using D-pad is messed up beyond 20 rows.  This 
rowsPerPage can be set to 100 as a workaround for now.

Original comment by shawns...@google.com on 11 Apr 2012 at 4:12