      */
      public function getScrollPositionDelta(index:int):Point
      {
-         if (!target || !clipContent)
-            return null;
-            
-         var n:int = target.numLayoutElements;
+        var g:GroupBase = target;
+        if (!g || !clipContent)
+            return null;     
+            
+         var n:int = g.numLayoutElements;
          if ((index < 0) || (index >= n))
             return null;
             
-         var element:ILayoutElement = target.getLayoutElementAt(index);
+         var element:ILayoutElement = g.getLayoutElementAt(index);
          if (!element || !element.includeInLayout)
             return null;
             
-         var scrollR:Rectangle = target.scrollRect;
+         var scrollR:Rectangle = getTargetScrollRect();
          if (!scrollR)
             return null;
          

    //--------------------------------------------------------------------------
    
    /**
     *  Returns the bounds of the first layout element that either spans or
     *  is to the left of the scrollRect's left edge.
     * 

         // scrollR "contains"  elementR in just one dimension
         if ((elementR.left >= scrollR.left) && (elementR.right <= scrollR.right))
            dx = 0;
         else if ((elementR.bottom <= scrollR.bottom) && (elementR.top >= scrollR.top))
            dy = 0;
            
         // elementR "contains" scrollR in just one dimension
         if ((elementR.left <= scrollR.left) && (elementR.right >= scrollR.right))
            dx = 0;
         else if ((elementR.bottom >= scrollR.bottom) && (elementR.top <= scrollR.top))
            dy = 0;
            
         return new Point(dx, dy);
