Updated Zooming for saving Original Position on DragEnd Event

This commit is contained in:
girish
2011-02-24 13:20:54 +00:00
parent b5e131bc96
commit 787d5c09df

View File

@@ -224,14 +224,14 @@ bpmnTask.prototype.paint = function () {
Figure.prototype.onDragend=function() {
if(typeof workflow.currentSelection != 'undefined' && workflow.currentSelection != null){
var currObj =workflow.currentSelection;
currObj.orgXPos = currObj.getX();
currObj.orgYPos = currObj.getY();
if(typeof currObj.id != 'undefined' && currObj.id.length == 32){
switch (currObj.type) {
case 'bpmnTask':
case 'bpmnSubProcess':
currObj.actiontype = 'saveTaskPosition';
currObj.workflow.savePosition(currObj);
break;
case 'bpmnAnnotation':
currObj.actiontype = 'saveTextPosition';