         // justify based on the explicit user settings.
         if (-1 != explicitColumnCount && -1 != explicitRowCount)
         {
-            if (orientation == "rows")
+            if (orientation == TileOrientation.ROWS)
                 _rowCount = Math.max(_rowCount, Math.ceil(elementCount / Math.max(1, explicitColumnCount)));
             else
                 _columnCount = Math.max(_columnCount, Math.ceil(elementCount / Math.max(1, explicitRowCount)));

        var yMinorDelta:Number;

        // Setup counterLimit and deltas based on orientation
        if (orientation == "rows")
        {
            counterLimit = _columnCount;
            xMajorDelta = _columnWidth + _horizontalGap;

     *  the column count automatically.
     *
     *  Setting this property won't have any effect, if <code>orientation</code> is
     *  set to TileOrientation.ROWS, <code>rowCount</code> is explicitly set, and the
     *  container width is explicitly set.
     *
     *  @see #rowCount
