         // position of the lines has remained the same.
         if (compose)
             composeTextLines(unscaledWidth, unscaledHeight);
-        else if (sharedIndex != -1)
+        else if (displayObjectSharingMode != DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
             adjustTextLines();
             
         // If the text is overset it always has to be clipped (as well as if 

import mx.utils.NameUtil;

import spark.components.Group;
import spark.core.IGraphicElement;

use namespace mx_internal;

import flash.display.Graphics;
import flash.display.Sprite;
import flash.events.Event;
import flash.geom.Rectangle;
import flash.text.engine.TextLine;

import flashx.textLayout.compose.TextLineRecycler;

import mx.core.UIComponent;
import mx.core.mx_internal;
import mx.events.FlexEvent;
