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

        var visibleColumns:uint = 0;
        var explicitColumnCount:int = explicitColumnCount;        
        
        
        var count:uint = layoutTarget.numLayoutItems;
        var totalCount:uint = count; // How many items will be laid out
        for (var i:int = 0; i < count; i++)
        {
            var layoutItem:ILayoutItem = layoutTarget.getLayoutItemAt(i);
            if (!layoutItem || !layoutItem.includeInLayout)
            {
            	totalCount--;
                continue;
            }            

            preferredHeight = Math.max(preferredHeight, layoutItem.preferredSize.y);
            preferredWidth += layoutItem.preferredSize.x; 

            var itemMinWidth:Number = hasPercentWidth(layoutItem) ? layoutItem.minSize.x : layoutItem.preferredSize.x;
            var itemMinHeight:Number = hasPercentHeight(layoutItem) ? layoutItem.minSize.y : layoutItem.preferredSize.y;
            minHeight = Math.max(minHeight, itemMinHeight);
            minWidth += itemMinWidth;
            
            if ((explicitColumnCount != -1) && (visibleColumns < explicitColumnCount)) 
            {
            	visibleWidth = preferredWidth;
            	visibleColumns += 1;
            }
            
        }
        
        if (totalCount > 1)
        { 
            var gapSpace:Number = gap * (totalCount - 1);
            minWidth += gapSpace;
            preferredWidth += gapSpace;
            visibleWidth += (visibleColumns < 2) ? 0 : ((visibleColumns - 1) * gap); 
        }
        
        layoutTarget.measuredWidth = (explicitColumnCount == -1) ? preferredWidth : visibleWidth;

        }
    }
    

    public function variableColumnWidthMeasure(layoutTarget:Group):void
    {
