Changeset 19

Show
Ignore:
Timestamp:
08/31/08 23:18:43 (4 years ago)
Author:
tsuckowhomberg
Message:
  • fixed: (BufferedGridView?.js) typo left in "insertRows()" would prevent the view to reassign the proper rowIndex when argument "isUpdate" was set to true
  • fixed: (BufferedGridView?.js) wrong parameter passed to "buffer" and "beforebuffer" event caused listeners to use wrong number of visible rows in the grid
Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r17 r19  
    1 Version 0.2rc4 
     1Version 0.2rc5 
     231-August-2008 
     3 
     4- fixed: 
     5 - BufferedGridView.js: typo left in "insertRows()" would prevent the view to reassign 
     6the proper rowIndex when argument "isUpdate" was set to true 
     7 - BufferedGridView.js: wrong parameter passed to "buffer" and "beforebuffer" event caused 
     8listeners to use wrong number of visible rows in the grid 
     9 
     10 
     11Version 0.2rc4 
    21230-August-2008 
    313 
  • trunk/src/BufferedGridView.js

    r17 r19  
    938938        if (success === true) { 
    939939            this.fireEvent('buffer', this, this.ds, this.rowIndex, 
    940                 Math.max(this.visibleRows, this.getRows().length), 
     940                Math.min(this.ds.totalLength, this.visibleRows-this.rowClipped), 
    941941                this.ds.getTotalCount(), 
    942942                options 
     
    11391139 
    11401140 
    1141         if (!isUpdate === true) { 
     1141        if (isUpdate === true) { 
    11421142            var rows   = this.getRows(); 
    11431143            var cursor = this.rowIndex; 
     
    13651365 
    13661366        this.fireEvent('beforebuffer', this, this.ds, index, 
    1367                        this.visibleRows, this.ds.totalLength); 
     1367                       Math.min(this.ds.totalLength, this.visibleRows-this.rowClipped), 
     1368                       this.ds.totalLength 
     1369        ); 
    13681370 
    13691371        this.ds.suspendEvents();