             return y / (defaultRowHeight + rowGap);
         
         if (y == 0)
-        {
-            recentNode = null;
             return 0;
-        }
         
         // initialize first node.
         if (!recentNode)

        
        // reset recent node.
        recentNode = null;
    }
    
    //----------------------------------

        var node:GridRowNode = rowList.first;
        var numRows:int = 0;
        
        while (node && node.rowIndex < nRows)
        {
            height += node.maxCellHeight;
            numRows++;
            node = node.next;
        }
        
        var contentHeight:Number = height + (nRows - numRows) * defaultRowHeight;
        if (nRows > 1)
            contentHeight += (nRows - 1) * rowGap;
        
        return contentHeight;
    }
    
    /**
