I figured it out.  Sorry about those previous posts, I'll try harder in the future before bothering you all.
http://spatial.ci.stpaul.mn.us/dynapi/spatialHTML/drag4.html
Now the resize works too.
 
DynAPI. {

             addLay=new DynLayer(null,null,null,1200,1195,'#c0c0c0');
 
             addLay.setHTML('<img src="http://spatial.ci.stpaul.mn.us/dynapi/docs/FME_a002871138414988.png">');
 
             DragEvent.setDragBoundary(addLay,-(1195-this.document.getHeight()+20),(1200-this.document.getWidth()+this.document.getWidth()+20),(1195-this.document.getHeight()+this.document.getHeight()+20),-(1200-this.document.getWidth()+20));

             DragEvent.enableDragEvents(addLay);

             DynAPI.document.addChild(addLay);

             addLay.positionInParent('middlecenter');
 
     }

     DynAPI.onResize=function() {

             DragEvent.setDragBoundary(addLay,-(1195-this.document.getHeight()+20),(1200-this.document.getWidth()+this.document.getWidth()+20),(1195-this.document.getHeight()+this.document.getHeight()+20),-(1200-this.document.getWidth()+20));
 
             addLay.positionInParent('middlecenter');
 
     }

Reply via email to