                     continue;
 
                 var layoutElementWidth:Number;
-                if (hasPercentWidth(layoutElement))
+                if (!isNaN(layoutElement.percentWidth))
                     layoutElementWidth = calculatePercentWidth(layoutElement, targetWidth);
                 else
                     layoutElementWidth = layoutElement.getPreferredBoundsWidth();

        }
        else
        {
            if (hasPercentWidth(layoutElement))
               newWidth = calculatePercentWidth(layoutElement, width);
        }
        

                continue;
            }
            
            if (!isNaN(layoutElement.percentHeight) && variableRowHeight)
            {
                totalPercentHeight += layoutElement.percentHeight;

