adding snapToGrid feature, first experimental setup

This commit is contained in:
Fernando Ontiveros
2011-02-16 22:10:02 +00:00
parent 02acb428b6
commit 25a4d296b1

View File

@@ -1,6 +1,8 @@
MyWorkflow=function(id){ MyWorkflow=function(id){
Workflow.call(this,id); Workflow.call(this,id);
this.html.style.backgroundImage="url(/skins/ext/images/gray/shapes/grid_10.png)"; this.html.style.backgroundImage="url(/skins/ext/images/gray/shapes/grid_10.png)";
this.setGridWidth(4,4);
this.setSnapToGrid(true);
}; };
MyWorkflow.prototype=new Workflow; MyWorkflow.prototype=new Workflow;
MyWorkflow.prototype.type="MyWorkflow"; MyWorkflow.prototype.type="MyWorkflow";