         var containerController:IContainerController =
             textFlow.flowComposer.getControllerAt(0);
 
-        var newContentWidth:Number =
-            containerController.maxHorizontalScrollPosition;
-        var newContentHeight:Number =
-            containerController.maxVerticalScrollPosition;
+        var newContentWidth:Number = containerController.contentWidth;
+        var newContentHeight:Number = containerController.contentHeight;
         
         if (newContentWidth != _contentWidth ||
             newContentHeight != _contentHeight)

        // Apply the specified selection indices to the TextFlow.
        if (selectionAnchorPositionChanged || selectionActivePositionChanged)
        {
            textFlow.interactionManager.setActiveSelection(
                _selectionAnchorPosition, _selectionActivePosition);
            
            selectionAnchorPositionChanged = false;

     */
    public function appendText(text:String):void
    {
        textFlow.interactionManager.setSelection(int.MAX_VALUE, int.MAX_VALUE);
        EditManager(textFlow.interactionManager).insertText(text);
    }

