         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)

    public function setSelection(anchorPosition:int = 0,
                                 activePosition:int = int.MAX_VALUE):void
    {
        textFlow.interactionManager.setActiveSelection(anchorPosition, activePosition);
    }
    
    /**

        var displayController:IFlowComposer = textFlow.flowComposer;
        var containerController:IContainerController =
            displayController.getControllerAt(0);
        containerController.setCompositionSize(unscaledWidth, unscaledHeight);
        displayController.updateAllContainers();
    }

