                     continue;
                 
                 var layoutElementHeight:Number;
-                if (hasPercentHeight(layoutElement))
+                if (!isNaN(layoutElement.percentHeight))
                     layoutElementHeight = calculatePercentHeight(layoutElement, targetHeight);
                 else
                     layoutElementHeight = layoutElement.getPreferredBoundsHeight();

        }
        else
        {
            if (hasPercentHeight(layoutElement))
               newHeight = calculatePercentHeight(layoutElement, height);   
        }
        

                continue;
            }
            
            if (!isNaN(layoutElement.percentWidth) && variableColumnWidth)
            {
                totalPercentWidth += layoutElement.percentWidth;

