         {
             var vgap:Number = (measuredEltCount > 1) ? (measuredEltCount - 1) * gap : 0;
             layoutTarget.measuredHeight = (measuredEltCount * rowHeight) + vgap + vPadding;
-        }
-        layoutTarget.measuredWidth = llv.minorSize + hPadding;
+            layoutTarget.measuredWidth = llv.minorSize + hPadding;
+        }
                 
         layoutTarget.measuredMinWidth = (horizontalAlign == HorizontalAlign.JUSTIFY) ? 
                 llv.minMinorSize + hPadding : layoutTarget.measuredWidth;

        dispatchEvent(new Event("indexInViewChanged"));
    }
        
    //--------------------------------------------------------------------------
    //
    //  Methods
    //
    //--------------------------------------------------------------------------
    
    /**
     *  @private

import flash.events.Event;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.utils.Dictionary;

import mx.containers.utilityClasses.Flex;
import mx.core.FlexVersion;
import mx.core.IInvalidating;
import mx.core.ILayoutElement;
import mx.core.IVisualElement;
import mx.core.mx_internal;
import mx.core.UIComponentGlobals;
import mx.events.FlexEvent;
import mx.events.PropertyChangeEvent;
import mx.managers.ILayoutManagerClient;

import spark.components.DataGroup;
import spark.components.supportClasses.GroupBase;
