Permalink
Browse files

Trying to fix result set handling at the edges of pages

  • Loading branch information...
1 parent 9cf1b1f commit 07836a6013bede5a305388a73e2029d96630f792 @kriszyp committed Mar 23, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 List.js
  2. +1 −1 OnDemandList.js
View
@@ -415,14 +415,15 @@ function(arrayUtil, kernel, declare, listen, aspect, has, miscUtil, TouchScroll,
}
if(to > -1){
// add to new slot (either before an existing row, or at the end)
- row = self.newRow(object, rows[to] || beforeNode, to, options);
+ row = self.newRow(object, rows[to] || (rows[to-1] && rows[to-1].nextSibling) || beforeNode, to, options);
if(row){
row.observerIndex = observerIndex;
rows.splice(to, 0, row);
if(!firstRow || to < firstRow.rowIndex){
firstRow = row;
}
}
+ options.count++;
}
from != to && firstRow && self.adjustRowIndices(firstRow);
}, true)) - 1;
View
@@ -18,7 +18,7 @@ return declare([List, _StoreMixin], {
// Defines the minimum distance (in pixels) from the visible viewport area
// rows must be in order to be removed. Setting to Infinity causes rows
// to never be removed.
- farOffRemoval: 1000,
+ farOffRemoval: 10000,
rowHeight: 22,

0 comments on commit 07836a6

Please sign in to comment.