             }
             else
             {
-                extY = layoutElement.getLayoutBoundsY();
+                extY = layoutElement.getBoundsYAtSize(NaN, NaN);
             }
 
             var preferredWidth:Number = layoutElement.getPreferredBoundsWidth();

            if (!layoutElement || !layoutElement.includeInLayout)
                continue;

            var hCenter:Number       = LayoutElementHelper.parseConstraintValue(layoutElement.horizontalCenter);
            var vCenter:Number       = LayoutElementHelper.parseConstraintValue(layoutElement.verticalCenter);
            var baseline:Number      = LayoutElementHelper.parseConstraintValue(layoutElement.baseline);
            var left:Number          = LayoutElementHelper.parseConstraintValue(layoutElement.left);
            var right:Number         = LayoutElementHelper.parseConstraintValue(layoutElement.right);
            var top:Number           = LayoutElementHelper.parseConstraintValue(layoutElement.top);
            var bottom:Number        = LayoutElementHelper.parseConstraintValue(layoutElement.bottom);
            var percentWidth:Number  = layoutElement.percentWidth;
            var percentHeight:Number = layoutElement.percentHeight;
            

            else if (!isNaN(bottom))
                childY = unscaledHeight - elementHeight - bottom;
            else
           		childY = layoutElement.getLayoutBoundsY();

            // Set position
            layoutElement.setLayoutBoundsPosition(childX, childY);
