summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-10-03 02:48:55 (EDT)
committerManik Kishore2012-10-03 02:48:55 (EDT)
commit184fb7e20860f614174cd9feb4a620a5d98bd6f5 (patch)
tree7aa698009dbe78bb7f87825ee7076e95092cbf22
parenta9289d44b1ad86d634b1b14e38a7888d69b34656 (diff)
downloadorg.eclipse.stardust.ui.web-184fb7e20860f614174cd9feb4a620a5d98bd6f5.zip
org.eclipse.stardust.ui.web-184fb7e20860f614174cd9feb4a620a5d98bd6f5.tar.gz
org.eclipse.stardust.ui.web-184fb7e20860f614174cd9feb4a620a5d98bd6f5.tar.bz2
CRNT-26499
Removed the code from findPath which was earlier used to extend the current segment. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@59735 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js
index 0978c10..a4b4636 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js
@@ -1019,6 +1019,7 @@ define(
while ((currentSegment.toX != targetX || currentSegment.toY != targetY)
&& n < 6) {
+ // Horizontal segments
if (currentSegment.isHorizontal()) {
if ((currentSegment.fromX < currentSegment.toX && currentSegment.toX < targetX)
|| (currentSegment.fromX > currentSegment.toX && currentSegment.toX > targetX)) {
@@ -1131,13 +1132,7 @@ define(
if (this.toAnchorPoint.symbol != null
&& !this.diagram.anchorDragEnabled
&& (currentSegment.toY > targetY && this.toAnchorPoint.y > targetY)) {
- if (currentSegment.fromX > currentSegment.toX) {
- currentSegment.toX = this.toAnchorPoint.symbol.x
- + this.toAnchorPoint.symbol.width
- + m_constants.CONNECTION_MINIMAL_SEGMENT_LENGTH;
- } else
- currentSegment.toX = this.toAnchorPoint.symbol.x
- - m_constants.CONNECTION_MINIMAL_SEGMENT_LENGTH;
+
this.segments
.push(currentSegment = new Segment(
currentSegment.toX,
@@ -1155,6 +1150,7 @@ define(
}
}
} else {
+ // Vertical segments
if ((currentSegment.fromY < currentSegment.toY && currentSegment.toY < targetY)
|| (currentSegment.fromY > currentSegment.toY && currentSegment.toY > targetY)) {
if (this.toAnchorPoint.symbol != null