/* Copyright (c) 2004-2016, The JS Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/dnd/move",["../_base/declare","../dom-geometry","../dom-style","./common","./Mover","./Moveable"],function(_1,_2,_3,_4,_5,_6){ var _7=_1("dojo.dnd.move.constrainedMoveable",_6,{constraints:function(){ },within:false,constructor:function(_8,_9){ if(!_9){ _9={}; } this.constraints=_9.constraints; this.within=_9.within; },onFirstMove:function(_a){ var c=this.constraintBox=this.constraints.call(this,_a); c.r=c.l+c.w; c.b=c.t+c.h; if(this.within){ var mb=_2.getMarginSize(_a.node); c.r-=mb.w; c.b-=mb.h; } },onMove:function(_b,_c){ var c=this.constraintBox,s=_b.node.style; this.onMoving(_b,_c); _c.l=_c.l