X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/ComponentDragger.html diff --git a/docs/source/ComponentDragger.html b/docs/source/ComponentDragger.html index b1efec62..1a60df06 100644 --- a/docs/source/ComponentDragger.html +++ b/docs/source/ComponentDragger.html @@ -1,4 +1,21 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.util.ComponentDragger
  * @extends Ext.dd.DragTracker
  * <p>A subclass of Ext.dd.DragTracker which handles dragging any Component.</p>
@@ -12,19 +29,19 @@
  */
 Ext.define('Ext.util.ComponentDragger', {
 
-    /**
+    /**
      * @cfg {Boolean} constrain
      * Specify as <code>true</code> to constrain the Component to within the bounds of the {@link #constrainTo} region.
      */
 
-    /**
+    /**
      * @cfg {String/Element} delegate
      * Optional. <p>A {@link Ext.DomQuery DomQuery} selector which identifies child elements within the Component's encapsulating
      * Element which are the drag handles. This limits dragging to only begin when the matching elements are mousedowned.</p>
      * <p>This may also be a specific child element within the Component's encapsulating element to use as the drag handle.</p>
      */
 
-    /**
+    /**
      * @cfg {Boolean} constrainDelegate
      * Specify as <code>true</code> to constrain the drag handles within the {@link constrainTo} region.
      */
@@ -100,7 +117,7 @@ Ext.define('Ext.util.ComponentDragger', {
             comp = (me.proxy && !me.comp.liveDrag) ? me.proxy : me.comp,
             offset = me.getOffset(me.constrain || me.constrainDelegate ? 'dragTarget' : null);
 
-        comp.setPosition.apply(comp, [me.startPosition[0] + offset[0], me.startPosition[1] + offset[1]]);
+        comp.setPosition(me.startPosition[0] + offset[0], me.startPosition[1] + offset[1]);
     },
 
     onEnd: function(e) {
@@ -108,4 +125,6 @@ Ext.define('Ext.util.ComponentDragger', {
             this.comp.unghost();
         }
     }
-});
\ No newline at end of file +});
+ +