Changeset 14906
- Timestamp:
- 08/18/08 23:30:20 (19 months ago)
- Files:
-
- 1 modified
-
dojox/trunk/grid/_Grid.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojox/trunk/grid/_Grid.js
r14880 r14906 626 626 } 627 627 } 628 this.scroller.windowHeight = h; 628 if(this.autoHeight === true || h != -1 || (typeof this.autoHeight == "number" && this.autoHeight >= this.rowCount)){ 629 this.scroller.windowHeight = h; 630 }else{ 631 this.scroller.windowHeight = Math.max(this.domNode.clientHeight - t, 0); 632 } 629 633 }, 630 634 … … 771 775 }else{ 772 776 this.rowCount = inRowCount; 777 this._setAutoHeightAttr(this.autoHeight, true); 773 778 if(this.layout.cells.length){ 774 779 this.scroller.updateRowCount(inRowCount); 780 } 781 this._resize(); 782 if(this.layout.cells.length){ 775 783 this.setScrollTop(this.scrollTop); 776 784 } 777 this._setAutoHeightAttr(this.autoHeight, true);778 this._resize();779 785 } 780 786 },