            case HorizontalAlign.JUSTIFY: 
                return targetWidth;
            case HorizontalAlign.CONTENT_JUSTIFY: 
-               return Math.max(elt.getPreferredBoundsWidth(), contentWidth);
+               return Math.max(elt.getPreferredBoundsWidth(), containerWidth);
        }
        return elt.getPreferredBoundsWidth();
     }

     *  be set to the target's actual (unscaled) width.
     * 
     *  - If horizontalAlign is "contentJustify", then the element's width
     *  will be set to the target's content width.
     * 
     *  The X coordinate of each layout element will be set to 0 unless one of the
     *  following is true:

        {
            var elt:ILayoutElement = layoutTarget.getLayoutElementAt(index);
            var h:Number = (isNaN(fixedRowHeight)) ? elt.getPreferredBoundsHeight() : fixedRowHeight;
            var w:Number = calculateElementWidth(elt, targetWidth, containerWidth);
            var x:Number = calculateElementX(elt, w, containerWidth);
            elt.setLayoutBoundsPosition(x, y);
            elt.setLayoutBoundsSize(w, h);            
