/* Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojo.dnd.move"]){ dojo._hasResource["dojo.dnd.move"]=true; dojo.provide("dojo.dnd.move"); dojo.require("dojo.dnd.Mover"); dojo.require("dojo.dnd.Moveable"); dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){ },within:false,markupFactory:function(_1,_2){ return new dojo.dnd.move.constrainedMoveable(_2,_1); },constructor:function(_3,_4){ if(!_4){ _4={}; } this.constraints=_4.constraints; this.within=_4.within; },onFirstMove:function(_5){ var c=this.constraintBox=this.constraints.call(this,_5); c.r=c.l+c.w; c.b=c.t+c.h; if(this.within){ var mb=dojo.marginBox(_5.node); c.r-=mb.w; c.b-=mb.h; } },onMove:function(_6,_7){ var c=this.constraintBox,s=_6.node.style; s.left=(_7.l