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

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

                for (index = startIndex; index <= endIndex; index++)
                {
                    elt = layoutTarget.getLayoutElementAt(index);
                    w = calculateElementWidth(elt, targetWidth, containerWidth);
                    x = calculateElementX(elt, w, containerWidth);
                    elt.setLayoutBoundsPosition(x, elt.getLayoutBoundsY());
                    elt.setLayoutBoundsSize(w, elt.getLayoutBoundsHeight());         
