summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-08-24 09:33:12 (EDT)
committer Stephan Born2012-08-24 09:33:12 (EDT)
commit2e8eb0d08e1f7cb52f73c876131360011bbf92eb (patch)
treed2b9a47a9bafbf48147a1b4f7e774c2bc535e338
parentdf8e932004f0a33c736dee5a565899c2078badd3 (diff)
downloadorg.eclipse.stardust.ui.web-2e8eb0d08e1f7cb52f73c876131360011bbf92eb.zip
org.eclipse.stardust.ui.web-2e8eb0d08e1f7cb52f73c876131360011bbf92eb.tar.gz
org.eclipse.stardust.ui.web-2e8eb0d08e1f7cb52f73c876131360011bbf92eb.tar.bz2
CRNT-25844
1)Made changes to flyout menu of connector. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@58687 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js41
1 files changed, 39 insertions, 2 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 5a0c106..db84a2a 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
@@ -1144,9 +1144,9 @@ define(
var scrollPos = m_modelerUtils.getModelerScrollPosition();
this.adjustFlyOutMenu(event.pageX
- - this.diagram.X_OFFSET + scrollPos.left - 5,
+ - this.diagram.X_OFFSET + scrollPos.left - m_constants.FLY_OUT_MENU_ITEM_MARGIN,
event.pageY - this.diagram.Y_OFFSET
- + scrollPos.top - 5, 40, 20);
+ + scrollPos.top - m_constants.FLY_OUT_MENU_ITEM_MARGIN, 55, 30);
this.showFlyOutMenu();
}
};
@@ -1160,6 +1160,9 @@ define(
}
};
+ /**
+ *
+ */
Connection.prototype.createFlyOutMenuBackground = function(x,
y, height, width) {
this.flyOutMenuBackground = m_canvasManager
@@ -1190,6 +1193,40 @@ define(
/**
*
*/
+ Connection.prototype.adjustFlyOutMenu = function(x, y, width,
+ height) {
+ this.flyOutMenuBackground.attr({
+ 'x' : x,
+ 'y' : y,
+ width : width,
+ height : height
+ });
+
+ this.adjustFlyOutMenuItems(x, y, width, height);
+ };
+
+ /**
+ *
+ */
+ Connection.prototype.adjustFlyOutMenuItems = function(x, y,
+ width, height) {
+ var n = 0;
+ while (n < this.bottomFlyOutMenuItems.length) {
+ this.bottomFlyOutMenuItems[n]
+ .attr({
+ 'x' : x
+ + n
+ * (m_constants.FLY_OUT_MENU_CONTENT_MARGIN),
+ 'y' : y
+ + m_constants.FLY_OUT_MENU_ITEM_MARGIN
+ });
+ ++n;
+ }
+ };
+
+ /**
+ *
+ */
Connection.prototype.remove = function() {
// TODO add symbol/diagram cleanup
this.path.remove();