     public function set minorSize(value:Number):void
     {
         _minorSize = value;
+        minorSizeBasedOnLayoutSize = false;
     }
     
     //----------------------------------

        }
        else
        {
            setMajorSize(index, elt.getLayoutBoundsWidth());            
            var h:Number = Math.min(elt.getPreferredBoundsHeight(), elt.getLayoutBoundsHeight());

            // Use the _minorSize instead of the getter, since the getter returns maximum
            // of _minorSize and _defaultMinorSize.
            _minorSize = Math.max(_minorSize, h);

    // What the length will be after any pending changes are flushed.
    private var pendingLength:int = -1;

    // true if minorSize was set in cacheDimensions from the layoutBounds minor dimension
    public var minorSizeBasedOnLayoutSize:Boolean;
    
    public function LinearLayoutVector(majorAxis:uint = VERTICAL)
    {
        super();
