                 throw new ConstraintError(message);
             }
         }
-        else if (!parentBoundariesTB && !(IConstraintLayout(target).constraintRows.length > 0))
-        {
-            //The top, bottom or verticalCenter style has been set to
-            //a non-parent region, but no rows were declared 
+        else if (!parentBoundariesTB && length == 0)
+        {
+            // The top, bottom or verticalCenter style has been set to
+            // a non-parent region, but no rows were declared 
             message = resourceManager.getString(
                 "containers", "noRowsFound");
             throw new ConstraintError(message);
         }
         
-        //The height of the region which
-        //the control will live in. 
+        // The height of the region which
+        // the control will live in. 
         availableHeight = Math.round(bottomHolder - topHolder);
         if (!isNaN(top) && !isNaN(bottom))
         {

        var vcY:Number;
        var hcX:Number;
        var baselineY:Number;
        //If we are not evaluating left, right, and horizontalCenter
        //relative to the parent container edges, we need to match
        //the column specified in the constraint expression with the
        //actual ConstraintColumn instance so later we can determine how
        //much space the control has to live in. 
        if (!parentBoundariesLR)
        {
            var matchLeft:Boolean = leftBoundary ? true : false;
            var matchRight:Boolean = rightBoundary ? true : false;
            var matchHC:Boolean = hcBoundary ? true : false;
            for (i = 0; i < IConstraintLayout(target).constraintColumns.length; i++)
            {       
                var col:ConstraintColumn = ConstraintColumn(IConstraintLayout(target).constraintColumns[i]);
                if (matchLeft)

        var checkWidth:Boolean = false;
        var checkHeight:Boolean = false;
    
        // If we are to evaluate the left, right, and horizontalCenter
        // styles relative to the parent boundaries, parentBoundariesLR will
        // be true
        var parentBoundariesLR:Boolean = (!hcBoundary && !leftBoundary && !rightBoundary);
        // If we are to evaluate the top, bottom, verticalCenter and baseline
        // styles relative to the parent boundaries, parentBoundariesTB will
        // be true
        var parentBoundariesTB:Boolean = (!vcBoundary && !topBoundary && !bottomBoundary && !baselineBoundary);
    
        var leftHolder:Number = 0;
