         layoutTarget.measuredHeight = visibleHeight;
 
         layoutTarget.measuredMinWidth = minColumnWidth;
-        layoutTarget.measuredMinHeight = rowHeight;
+        layoutTarget.measuredMinHeight = visibleHeight;
         
         layoutTarget.setContentSize(columnWidth, contentHeight);
     }

        	layoutTarget.invalidateDisplayList();
        }
    }


    private function variableRowHeightMeasure(layoutTarget:Group):void
    {

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

            preferredWidth = Math.max(preferredWidth, li.preferredSize.x);
            preferredHeight += li.preferredSize.y; 
            
            var vrr:Boolean = (explicitRowCount != -1) && (visibleRows < explicitRowCount);

            if (vrr || (explicitRowCount == -1))
            {
                var mw:Number =  hasPercentWidth(li) ? li.minSize.x : li.preferredSize.x;
                var mh:Number = hasPercentHeight(li) ? li.minSize.y : li.preferredSize.y;                   
                minWidth = Math.max(mw, minWidth);
                minHeight += mh;
            }

            if (vrr) 
            {
                visibleHeight = preferredHeight;
                visibleRows += 1;
            }            
        }
        
        if (totalCount > 1)
        { 
            preferredHeight += gap * (totalCount - 1);
            var vgap:Number = (visibleRows > 1) ? (gap * (visibleRows - 1)) : 0;
            visibleHeight += vgap;
            minHeight += vgap;
        }
        
        layoutTarget.measuredWidth = preferredWidth;
