             minWidth = Math.max(minWidth, itemMinWidth);
             minHeight += itemMinHeight;
             
-            if ((explicitRowCount != -1) && (visibleRows < explicitRowCount)) {
+            if ((explicitRowCount != -1) && (visibleRows < explicitRowCount)) 
+            {
             	visibleHeight = preferredHeight;
             	visibleRows += 1;
             }

     *  setting of <code>explicitRowHeight</code> which
     *  permanently locks in the height of the rows.
     *
     *  @param v The row height, in pixels.
     */
    protected function setRowHeight(v:Number):void
    {
        _rowHeight = v;
    }    
    
    //----------------------------------
    //  explicitColWidth
    //----------------------------------

    /**
     *  The column width requested by explicitly setting
     *  <code>colWidth</code>.
     */
    protected var explicitColWidth:Number;

    //----------------------------------
    //  colWidth
    //----------------------------------
    
    /**
     *  @private
     */
    private var _colWidth:Number = 20;
    
    /**
     *  @private
     */
    private var colWidthChanged:Boolean = false;

    [Inspectable(category="General")]

    /**
     *  The width of the (one) column in pixels.
     */
    public function get colWidth():Number
    {
        return _colWidth;
    }

    /**
     *  @private
     */
    public function set colWidth(value:Number):void
    {
        explicitColWidth = value;

        if (_colWidth != value)
        {
            setColWidth(value);
 		   	var layoutTarget:Group = target;
        	if (layoutTarget != null) {
        		colWidthChanged = true;
            	layoutTarget.invalidateSize();
	            layoutTarget.invalidateDisplayList();
        	}
        }
    }

    /**
     *  Sets the <code>colWidth</code> property without causing invalidation or 
     *  setting of <code>explicitColWidth</code> which
     *  permanently locks in width of the (one) column.
     *
     *  @param v The row height, in pixels.
     */
    protected function setColWidth(v:Number):void
    {
        _colWidth = v;
    } 


    public function measure():void
    {
    	var layoutTarget:Group = target;
        if (!layoutTarget)
            return;
            
        var minWidth:Number = 0;
        var minHeight:Number = 0;
        var preferredWidth:Number = 0;
        var preferredHeight:Number = 0;
        var visibleHeight:Number = 0;
        var visibleRows:uint = 0;
        
        var count:uint = layoutTarget.numLayoutItems;
        var totalCount:uint = count; // How many items will be laid out
        for (var i:int = 0; i < count; i++)


package flex.layout
{
import flash.geom.Rectangle;

import flex.core.Group;
