Changeset 8
- Timestamp:
- 08/25/08 03:07:14 (4 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
CHANGELOG (modified) (1 diff)
-
src/BufferedGridView.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGELOG
r6 r8 1 Version 0.1.1 1 Version 0.1.2 2 25-August-2008 3 4 - fixes: 5 - BufferedGridView: wrong calculation of "start"-parameter for the buffer-request 6 caused infinite loop. Adjusted calculation of return value in "getPredictedBufferIndex()" 7 to always return correct value for "start"-parameter if the "nearLimit" property is greater 8 than or equals to half of store's "bufferSize" property (fixes google issue 4) 9 10 Version 0.1.1 2 11 25-August-2008 3 12 -
trunk/src/BufferedGridView.js
r6 r8 1202 1202 var lastRowIndex = Math.min(this.ds.totalLength-1, 1203 1203 rowIndex + this.visibleRows); 1204 1204 1205 return (rowIndex >= this.ds.bufferRange[0]) && 1205 1206 (lastRowIndex <= this.ds.bufferRange[1]); … … 1216 1217 { 1217 1218 if (!inRange) { 1218 return Math.max(0, index-(2*this.nearLimit)); 1219 var dNear = 2*this.nearLimit; 1220 return Math.max(0, index-((dNear >= this.ds.bufferSize ? this.nearLimit : dNear))); 1219 1221 } 1220 1222 if (!down) { … … 1316 1318 1317 1319 var bufferOffset = this.getPredictedBufferIndex(index, inRange, down); 1318 var fetchSize = this.ds.bufferSize;1319 1320 1320 1321 if (!inRange) {
