| author | Sidharth Singh | 2012-09-27 02:42:36 (EDT) |
|---|---|---|
| committer | Stephan Born | 2012-09-27 02:42:36 (EDT) |
| commit | fbb2de305ab48930d0dc67dbb1c50ad84da0a8dc (patch) (side-by-side diff) | |
| tree | d05b46fee015506d117a40a8163d4e5bd222a73e | |
| parent | 3f374ef6c43c5ebf2309a34379caf48b5d1a743d (diff) | |
| download | org.eclipse.stardust.ui.web-fbb2de305ab48930d0dc67dbb1c50ad84da0a8dc.zip org.eclipse.stardust.ui.web-fbb2de305ab48930d0dc67dbb1c50ad84da0a8dc.tar.gz org.eclipse.stardust.ui.web-fbb2de305ab48930d0dc67dbb1c50ad84da0a8dc.tar.bz2 | |
CRNT-26376
Made changes to logic of findPath in m_connection.js
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@59536 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
| -rw-r--r-- | web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js | 14 |
1 files changed, 13 insertions, 1 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 df36cc5..a114be1 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 @@ -1184,7 +1184,19 @@ define( - m_constants.CONNECTION_MINIMAL_SEGMENT_LENGTH,
currentSegment.toY,
currentSegment));
- }else{
+ }else if (this.toAnchorPoint.symbol != null
+ && ((currentSegment.toX > (this.fromAnchorPoint.symbol.x + this.fromAnchorPoint.symbol.width)) && this.toAnchorPoint.symbol.x
+ > targetX)) {
+ this.segments
+ .push(currentSegment = new Segment(
+ currentSegment.toX,
+ currentSegment.toY,
+ (this.toAnchorPoint.symbol.x+ this.toAnchorPoint.symbol.width)
+ + m_constants.CONNECTION_MINIMAL_SEGMENT_LENGTH,
+ currentSegment.toY,
+ currentSegment));
+ }
+ else{
this.segments
.push(currentSegment = new Segment(
currentSegment.toX,
|

