      */
     private function textFlow_scrollHandler(event:Event):void
     {
+        var containerController:IContainerController =
+            textFlow.displayController.getContainerControllerAt(0);
+
         var newHorizontalScrollPosition:Number =
-            textFlow.controller.horizontalScrollPosition;
+            containerController.horizontalScrollPosition;
         var newVerticalScrollPosition:Number =
-            textFlow.controller.verticalScrollPosition;
+            containerController.verticalScrollPosition;
 
         if (newHorizontalScrollPosition != _horizontalScrollPosition ||
             newVerticalScrollPosition != _verticalScrollPosition)

//
////////////////////////////////////////////////////////////////////////////////

import text.edit.EditManager;
import text.operations.FlowOperation;

class TextViewEditManager extends EditManager
{

        
        // Tell the TextFlow to generate TextLines within the
        // rectangle (0, 0, unscaledWidth, unscaledHeight).
        var displayController:ITCALDisplayController =
            textFlow.displayController;
        var containerController:IContainerController =
            displayController.getContainerControllerAt(0);
        containerController.updateComposeSize(unscaledWidth, unscaledHeight);
        displayController.updateDisplay();
    }

    //--------------------------------------------------------------------------
