     
     /**
      *  @private
-     *  Returns true, if the dimensions (colCounr1, rowCount1) are more square than (colCount2, rowCount2).
+     *  Returns true, if the dimensions (colCount1, rowCount1) are more square than (colCount2, rowCount2).
      *  Squareness is the difference between width and height of a tile layout
      *  with the specified number of columns and rows.
      */

        if (isNaN(_rowHeight))
            _rowHeight = _tileHeightCached = rowHeight;
    }

    /**
     *  @private
     *  @return Returns the number of layout elements.
     */
    private function calculateElementCount():int
    {
        if (-1 != _numElementsCached)
            return _numElementsCached;

        var layoutTarget:GroupBase = target;
        var count:int = layoutTarget.numElements;
        _numElementsCached = count;
        for (var i:int = 0; i < count; i++)
        {
            var el:ILayoutElement = layoutTarget.getElementAt(i);

            yMinorDelta = 0;
        }

        for(var index:int = visibleStartIndex; index <= visibleEndIndex; index++)
        {
            var el:ILayoutElement = layoutTarget.getVirtualElementAt(index);
            if (!el || !el.includeInLayout)
                continue;

