         layoutTarget.measuredWidth = visibleWidth;
         layoutTarget.measuredHeight = rowHeight;
         
-        layoutTarget.contentWidth = contentWidth; 
-        layoutTarget.contentHeight = rowHeight;
-
         layoutTarget.measuredMinWidth = columnWidth;
         layoutTarget.measuredMinHeight = minRowHeight;
+        
+        layoutTarget.setContentSize(contentWidth, rowHeight);
     }
     
 

            
        // Finally, position the objects        
        var x:Number = 0;
        for each (var lo:ILayoutItem in layoutItemArray)
        {
            var y:Number = (unscaledHeight - lo.actualSize.y) * vAlign;
            lo.setActualPosition(x, y);
            if (!variableColumnWidth)
            	lo.setActualSize(columnWidth, lo.actualSize.y);
            var dx:Number = lo.actualSize.x;
            if((explicitColumnCount == -1) && (x < maxVisibleX) && ((x + dx) > minVisibleX))
            	visibleColumns += 1;
            x += dx + gap;
        }
        if (explicitColumnCount == -1) 
        	setColumnCount(visibleColumns);        

        BasicLayout.setScrollRect(layoutTarget, unscaledWidth, unscaledHeight);
    }



        layoutTarget.measuredWidth = (explicitColumnCount == -1) ? preferredWidth : visibleWidth;
        layoutTarget.measuredHeight = preferredHeight;

        layoutTarget.measuredMinWidth = minWidth; 
        layoutTarget.measuredMinHeight = minHeight;
        
        layoutTarget.setContentSize(preferredWidth, preferredHeight);
    }
    
    
