Changeset 14868
- Timestamp:
- 08/15/08 19:31:23 (5 months ago)
- Location:
- dojox/trunk/grid
- Files:
-
- 3 modified
-
DataGrid.js (modified) (3 diffs)
-
_Grid.js (modified) (3 diffs)
-
_Scroller.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dojox/trunk/grid/DataGrid.js
r14856 r14868 155 155 this.setScrollTop(0); 156 156 this.postrender(); 157 } 158 } 157 }else if(this._lastScrollTop){ 158 this.setScrollTop(this._lastScrollTop); 159 } 160 } 161 delete this._lastScrollTop; 159 162 if(!this._isLoaded){ 160 163 this._isLoading = false; … … 171 174 _onFetchError: function(err, req){ 172 175 console.log(err); 176 delete this._lastScrollTop; 173 177 if(!this._isLoaded){ 174 178 this._isLoading = false; … … 355 359 356 360 sort: function(){ 361 this._lastScrollTop = this.scrollTop; 357 362 this._refresh(); 358 363 }, -
dojox/trunk/grid/_Grid.js
r14847 r14868 338 338 // summary: Creates a new virtual scroller 339 339 this.scroller = new dojox.grid._Scroller(); 340 this.scroller.grid = this; 340 341 this.scroller._pageIdPrefix = this.id + '-'; 341 342 this.scroller.renderRow = dojo.hitch(this, "renderRow"); … … 728 729 } 729 730 //this.edit.saveState(inRowIndex); 731 var lastScrollTop = this.scrollTop; 730 732 this.prerender(); 731 733 this.scroller.invalidateNodes(); 732 this.setScrollTop( this.scrollTop);734 this.setScrollTop(lastScrollTop); 733 735 this.postrender(); 734 736 //this.edit.restoreState(inRowIndex); … … 829 831 830 832 setScrollTop: function(inTop){ 831 this.scrollTop = this.views.setScrollTop(inTop); 832 this.scroller.scroll(this.scrollTop); 833 this.scroller.scroll(this.views.setScrollTop(inTop)); 833 834 }, 834 835 -
dojox/trunk/grid/_Scroller.js
r14847 r14868 336 336 }, 337 337 scroll: function(inTop){ 338 this.grid.scrollTop = inTop; 338 339 if(this.colCount){ 339 340 this.startPacify();