X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/DD.html diff --git a/docs/source/DD.html b/docs/source/DD.html index 52a7ff97..5365e048 100644 --- a/docs/source/DD.html +++ b/docs/source/DD.html @@ -1,4 +1,21 @@ -
+ +/* + + + + +\ No newline at end of file +The source code + + + + + + +/* * This is a derivative of the similarly named class in the YUI Library. * The original license: * Copyright (c) 2006, Yahoo! Inc. All rights reserved. @@ -7,7 +24,7 @@ */ -/** +/** * @class Ext.dd.DD * A DragDrop implementation where the linked element follows the * mouse cursor during a drag. @@ -29,7 +46,7 @@ Ext.define('Ext.dd.DD', { } }, - /** + /** * When set to true, the utility automatically tries to scroll the browser * window when a drag and drop element is dragged near the viewport boundary. * Defaults to true. @@ -38,7 +55,7 @@ Ext.define('Ext.dd.DD', { */ scroll: true, - /** + /** * Sets the pointer offset to the distance between the linked element's top * left corner and the location the element was clicked * @method autoOffset @@ -51,7 +68,7 @@ Ext.define('Ext.dd.DD', { this.setDelta(x, y); }, - /** + /** * Sets the pointer offset. You can call this directly to force the * offset to be in a particular location (e.g., pass in 0,0 to set it * to the center of the object) @@ -64,7 +81,7 @@ Ext.define('Ext.dd.DD', { this.deltaY = iDeltaY; }, - /** + /** * Sets the drag element to the location of the mousedown or click event, * maintaining the cursor location relative to the location on the element * that was clicked. Override this if you want to place the element in a @@ -81,7 +98,7 @@ Ext.define('Ext.dd.DD', { this.alignElWithMouse(el, iPageX, iPageY); }, - /** + /** * Sets the element to the location of the mousedown or click event, * maintaining the cursor location relative to the location on the element * that was clicked. Override this if you want to place the element in a @@ -121,7 +138,7 @@ Ext.define('Ext.dd.DD', { return oCoord; }, - /** + /** * Saves the most recent position so that we can reset the constraints and * tick marks on-demand. We need to know this so that we can calculate the * number of pixels the element is offset from its original position. @@ -142,7 +159,7 @@ Ext.define('Ext.dd.DD', { } }, - /** + /** * Auto-scroll the window if the dragged object has been moved beyond the * visible window boundary. * @method autoScroll @@ -217,7 +234,7 @@ Ext.define('Ext.dd.DD', { } }, - /** + /** * Finds the location the element should be placed if we want to move * it to where the mouse location less the click offset would place us. * @method getTargetCoord @@ -255,7 +272,7 @@ Ext.define('Ext.dd.DD', { return {x: x, y: y}; }, - /** + /** * Sets up config options specific to this class. Overrides * Ext.dd.DragDrop, but all versions of this method through the * inheritance chain are called @@ -265,7 +282,7 @@ Ext.define('Ext.dd.DD', { this.scroll = (this.config.scroll !== false); }, - /** + /** * Event that fires prior to the onMouseDown event. Overrides * Ext.dd.DragDrop. */ @@ -274,7 +291,7 @@ Ext.define('Ext.dd.DD', { this.autoOffset(e.getPageX(), e.getPageY()); }, - /** + /** * Event that fires prior to the onDrag event. Overrides * Ext.dd.DragDrop. */ @@ -314,4 +331,6 @@ Ext.define('Ext.dd.DD', { */ }); -