         {
             // otherwise, find the max of the typical cell heights.
             var max:Number = 0;
-            for (var i:int = 0; i < typicalCellHeights.length; i++)
-                max = Math.max(max, typicalCellHeights[i]);
+            const typicalCellHeightsLength:int = typicalCellHeights.length;
+            for (var i:int = 0; i < typicalCellHeightsLength; i++)
+            {
+                if (!isNaN(typicalCellHeights[i])) 
+                    max = Math.max(max, typicalCellHeights[i]);
+            }
             this.defaultRowHeight = max;
         }
     }

     */
    public function clear():void
    {
        rowCount = 0;
        rowList.removeAll();
        this.recentNode = null;
        this.recentNode2 = null;
        this.startY = 0;
        this.startY2 = 0;
    }
    
    /**

            else
                cur -= temp + columnGap;
            
            if (cur <= 0)
                return i;
        }
        
