         dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, prop, oldValue, value));
     }
 }
-}+}

            _layout.updateDisplayList(unscaledWidth, unscaledHeight);
    }
    
    //--------------------------------------------------------------------------
    //
    //  IViewport properties and methods that delegate to layout
    //
    //--------------------------------------------------------------------------    
    
    //----------------------------------
    //  horizontalScrollPosition
    //----------------------------------
        
    [Bindable]

    /**
     *  @copy mx.core.IViewport#horizontalScrollPosition
     */
    public function get horizontalScrollPosition():Number 
    {
        return (layout) ? layout.horizontalScrollPosition : 0;
    }

    /**
     *  @private
     */
    public function set horizontalScrollPosition(value:Number):void 
    {
        if (layout)
            layout.horizontalScrollPosition = value;
    }
    
    //----------------------------------
    //  verticalScrollPosition
    //----------------------------------
    
    [Bindable]
    
    /**
     *  @copy mx.core.IViewport#verticalScrollPosition
     */
    public function get verticalScrollPosition():Number 
    {
        return (layout) ? layout.verticalScrollPosition : 0;
    }

    /**
     *  @private
     */
    public function set verticalScrollPosition(value:Number):void 
    {
        if (layout)
            layout.verticalScrollPosition = value;
    }
    
    //----------------------------------
    //  horizontal,verticalScrollPositionDelta
    //----------------------------------

        _layout = new BasicLayout();
        _layout.target = this;  
    }
        
    //--------------------------------------------------------------------------
    //
    //  Properties
    //
    //--------------------------------------------------------------------------
        
    //----------------------------------
    //  layout
    //----------------------------------    
        
    private var _layout:LayoutBase;  // initialized in the ctor
    private var _layoutProperties:Object = null;
    
    /**
     *  The layout object for this container.  
