         }
         else
         {
-            if (hasPercentWidth(layoutElement))
+            if (!isNaN(layoutElement.percentWidth))
                newWidth = calculatePercentWidth(layoutElement, width);
         }
         

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


                    continue;

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