                 _columnCount = Math.max(1, explicitColumnCount);
         }
         // Figure out number of columns or rows based on the explicit size along one of the axes
-        else if (!isNaN(width) && (orientation == "rows" || isNaN(height)))
+        else if (!isNaN(width) && (orientation == TileOrientation.ROWS || isNaN(height)))
         {
             if (_columnWidth + explicitHorizontalGap > 0)
                 _columnCount = Math.max(1, Math.floor((width + explicitHorizontalGap) / (_columnWidth + explicitHorizontalGap)));

            if (++counter >= counterLimit)
            {
                counter = 0;
                if (orientation == "rows")
                {
                    xPos = 0;
                    yPos += yMinorDelta;

     *  the row count automatically.
     *
     *  Setting this property won't have any effect, if <code>orientation</code> is
     *  set to TileOrientation.COLUMNS, <code>columnCount</code> is explicitly set, and the
     *  container height is explicitly set.
     *
     *  @see #columnCount
