             var layoutItem:ILayoutItem = layoutTarget.getLayoutItemAt(i);
             if (!layoutItem || !layoutItem.includeInLayout)
                 continue;
-            
+
             var hCenter:Number = LayoutItemHelper.getConstraint(layoutItem, "horizontalCenter");
             var vCenter:Number = LayoutItemHelper.getConstraint(layoutItem, "verticalCenter");
             var left:Number    = LayoutItemHelper.getConstraint(layoutItem, "left");

            var right:Number     = LayoutItemHelper.getConstraint(layoutItem, "right");
            var top:Number       = LayoutItemHelper.getConstraint(layoutItem, "top");
            var bottom:Number    = LayoutItemHelper.getConstraint(layoutItem, "bottom");
                
            var extX:Number = 0;
            var extY:Number = 0;
            
            if (isNaN(left) && isNaN(right) &&
                isNaN(LayoutItemHelper.getConstraint(layoutItem, "horizontalCenter")))
            {

                extX += isNaN(left) ? 0 : left;
                extX += isNaN(right) ? 0 : right;
            }

            if (isNaN(top) && isNaN(bottom) &&
                isNaN(LayoutItemHelper.getConstraint(layoutItem, "verticalCenter")))
            {
                extY += layoutItem.actualPosition.y;
            }
