summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-10-15 03:17:10 (EDT)
committer Manik Kishore2012-10-15 03:17:10 (EDT)
commitc84d16e2e90ab3901ad28cf12c826fa349fd1a68 (patch)
tree67463664a58bb628ab420faad27bee8b6d94e627
parentabab0345c537f5c5fb1f8bfc6c54a5ce67952b98 (diff)
downloadorg.eclipse.stardust.ui.web-c84d16e2e90ab3901ad28cf12c826fa349fd1a68.zip
org.eclipse.stardust.ui.web-c84d16e2e90ab3901ad28cf12c826fa349fd1a68.tar.gz
org.eclipse.stardust.ui.web-c84d16e2e90ab3901ad28cf12c826fa349fd1a68.tar.bz2
CRNT-26620
Made change to m_symbol.js Symbol_dragClosure() to use moveTo(x,y) while dragDrop Renamed method moveSelectedSymbolsBy --- moveSelectedSymbolsTo() in m_diagram.js git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@60018 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js4
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js6
2 files changed, 5 insertions, 5 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
index a2a3caf..efc0da2 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
@@ -1665,9 +1665,9 @@ define(
/**
*
*/
- Diagram.prototype.moveSelectedSymbolsBy = function(dX, dY) {
+ Diagram.prototype.moveSelectedSymbolsTo = function(dX, dY) {
for ( var n in this.currentSelection) {
- this.currentSelection[n].moveBy(dX, dY);
+ this.currentSelection[n].moveTo(dX, dY);
}
};
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
index aee9167..704f21a 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
@@ -1680,19 +1680,19 @@ define(
*/
function Symbol_dragClosure(dX, dY, x, y, event) {
this.auxiliaryProperties.callbackScope.diagram
- .moveSelectedSymbolsBy(
+ .moveSelectedSymbolsTo(
x
* this.auxiliaryProperties.callbackScope.diagram.zoomFactor
- this.auxiliaryProperties.callbackScope.diagram.X_OFFSET
+ this.auxiliaryProperties.callbackScope.diagram.scrollPane
.scrollLeft()
- - (this.auxiliaryProperties.callbackScope.x + (this.auxiliaryProperties.callbackScope.width / 2)),
+ - (this.auxiliaryProperties.callbackScope.width / 2),
y
* this.auxiliaryProperties.callbackScope.diagram.zoomFactor
- this.auxiliaryProperties.callbackScope.diagram.Y_OFFSET
+ this.auxiliaryProperties.callbackScope.diagram.scrollPane
.scrollTop()
- - (this.auxiliaryProperties.callbackScope.y + (this.auxiliaryProperties.callbackScope.height / 2)));
+ - (this.auxiliaryProperties.callbackScope.height / 2));
}
/**