public/javascripts/yui/dragdrop/dragdrop-debug.js
function(oDD) {
            if (! this.isTypeOfDD(oDD)) {
                YAHOO.log(oDD + " is not a DD obj", "info", "DragDropMgr");
                return null;
            }

            var el = oDD.getEl(), pos, x1, x2, y1, y2, t, r, b, l;

            try {
                pos= YAHOO.util.Dom.getXY(el);
            } catch (e) { }

            if (!pos) {
                YAHOO.log("getXY failed", "info", "DragDropMgr");
                return null;
            }

            x1 = pos[0];
            x2 = x1 + el.offsetWidth;
            y1 = pos[1];
            y2 = y1 + el.offsetHeight;

            t = y1 - oDD.padding[0];
            r = x2 + oDD.padding[1];
            b = y2 + oDD.padding[2];
            l = x1 - oDD.padding[3];

            return new YAHOO.util.Region( t, r, b, l );
        }
function(oDD) {
            if (! this.isTypeOfDD(oDD)) {
                YAHOO.log(oDD + " is not a DD obj", "info", "DragDropMgr");
                return null;
            }

            var el = oDD.getEl(), pos, x1, x2, y1, y2, t, r, b, l;

            try {
                pos= YAHOO.util.Dom.getXY(el);
            } catch (e) { }

            if (!pos) {
                YAHOO.log("getXY failed", "info", "DragDropMgr");
                return null;
            }

            x1 = pos[0];
            x2 = x1 + el.offsetWidth;
            y1 = pos[1];
            y2 = y1 + el.offsetHeight;

            t = y1 - oDD.padding[0];
            r = x2 + oDD.padding[1];
            b = y2 + oDD.padding[2];
            l = x1 - oDD.padding[3];

            return new YAHOO.util.Region( t, r, b, l );
        }
function ( oDD ) { if ( ! this . isTypeOfDD ( oDD ) ) { YAHOO . log ( oDD + " is not a DD obj" , "info" , "DragDropMgr" ) ; return null ; } var el = oDD . getEl ( ) , pos , x1 , x2 , y1 , y2 , t , r , b , l ; try { pos = YAHOO . util . Dom . getXY ( el ) ; } catch ( e ) { } if ( ! pos ) { YAHOO . log ( "getXY failed" , "info" , "DragDropMgr" ) ; return null ; } x1 = pos [ 0 ] ; x2 = x1 + el . offsetWidth ; y1 = pos [ 1 ] ; y2 = y1 + el . offsetHeight ; t = y1 - oDD . padding [ 0 ] ; r = x2 + oDD . padding [ 1 ] ; b = y2 + oDD . padding [ 2 ] ; l = x1 - oDD . padding [ 3 ] ; return new YAHOO . util . Region ( t , r , b , l ) ; }
Returns a Region object containing the drag and drop element's position
and size, including the padding configured for it
@method getLocation
@param {DragDrop} oDD the drag and drop object to get the
location for
@return {YAHOO.util.Region} a Region object representing the total area
the element occupies, including any padding
the instance is configured for.
@static
Returns a Region object containing the drag and drop element s position and size including the padding configured for it