         }
         
         if (variableRowHeight)
-            layoutElement.setLayoutSize(newWidth, height);
+            layoutElement.setLayoutBoundsSize(newWidth, height);
         else
-            layoutElement.setLayoutSize(newWidth, rowHeight);
+            layoutElement.setLayoutBoundsSize(newWidth, rowHeight);
     }
         
     //--------------------------------------------------------------------------

        for (; (y < maxVisibleY) && (index < eltCount); index++)
        {
            var elt:ILayoutElement = layoutTarget.getLayoutElementAt(index);
            var h:Number = elt.getPreferredHeight();
            var w:Number = calculateElementWidth(elt, targetWidth, contentWidth);
            var x:Number = calculateElementX(elt, w, contentWidth);
            elt.setLayoutPosition(x, y);
            elt.setLayoutSize(w, elt.getPreferredHeight());            
            llv.cacheDimensions(index, elt);
            y += h + gap;
        }

           case HorizontalAlign.CONTENT_JUSTIFY: 
               return contentWidth;
       }
       return elt.getPreferredBoundsWidth();
    }
    
    /**
