         
         var oldContentHeight:Number = _contentHeight;
         var newContentHeight:Number = containerController.contentHeight;
+
+        // Error correction for rounding errors.  It shouldn't be so but
+        // the contentHeight can be slightly larger than the requested
+        // compositionHeight.  
+        if (newContentHeight > containerController.compositionHeight &&
+            Math.round(newContentHeight) == containerController.compositionHeight)
+        { 
+            newContentHeight = containerController.compositionHeight;
+        }
+            
         if (newContentHeight != oldContentHeight)
         {
             _contentHeight = newContentHeight;

    {
        // When gaining focus, show the selection.  Uses the SelectionFormat 
        // values defined by the SelectionManager.
        if (textFlow.interactionManager.hasSelection())
            textFlow.flowComposer.showSelection();
    }

    /**

            selectionVisibility == TextSelectionVisibility.ALWAYS ?
            1.0 : 0.0;
            
        // The cursor is black, inverted, which makes it the inverse color
        // of the background, for maximum readability.         
        interactionManager.focusSelectionFormat = new SelectionFormat(
            selectionColor, 1.0, BlendMode.NORMAL, 
            0x000000, 1.0, BlendMode.INVERT);
        
        interactionManager.noFocusSelectionFormat = new SelectionFormat(
            unfocusedSelectionColor, unfocusedAlpha, BlendMode.NORMAL,
