 		const columnGap:int = gridDimensions.columnGap;
 		const startCellX:Number = gridDimensions.getCellX(0 /* rowIndex */, firstVisibleColumnIndex);
         const isFixedRowHeight:Boolean = !grid.variableRowHeight;
-        
-        
+        var maxTypicalCellHeight:Number = 0;
+
 		for (var columnIndex:int = firstVisibleColumnIndex; 
                  (isNaN(width) || (width > 0)) && (columnIndex < columnCount); 
                  columnIndex++)

                    cellHeight = renderer.getPreferredBoundsHeight();
                    gridDimensions.setTypicalCellHeight(columnIndex, cellHeight);
                }
                freeGridElement(renderer);     
            }
            
            if (!isNaN(width))

    			else
    				width -= cellWidth + columnGap;
            }
            
            maxTypicalCellHeight = Math.max(maxTypicalCellHeight, cellHeight);
		}
        
        if (isFixedRowHeight && isNaN(grid.rowHeight))
            gridDimensions.fixedRowHeight = maxTypicalCellHeight;
    }
	
	/**
	 *  @private
