diff --git a/o2web/source/x_component_process_FormDesigner/Property.js b/o2web/source/x_component_process_FormDesigner/Property.js index 113295e604e1c8020509ef4d83634b2d3a2788ad..5fd5d37a6ac0ef79bea3d3d118438c7a523461b5 100644 --- a/o2web/source/x_component_process_FormDesigner/Property.js +++ b/o2web/source/x_component_process_FormDesigner/Property.js @@ -834,7 +834,11 @@ MWF.xApplication.process.FormDesigner.Property = MWF.FCProperty = new Class({ }, selectIcon: function(node){ if (!node.iconMenu){ - var iconSelectMenu = new MWF.widget.Menu(node, {"event": "click", "style": "processIcon"}); + var tr = node.getParent("tr"); + var p = tr.getPosition(this.form.designer.content); + var iconSelectMenu = new MWF.widget.Menu(node, {"left": p.x-330, "top": p.y, "event": "click", "style": "processIcon"}); + + //var iconSelectMenu = new MWF.widget.Menu(node, {"event": "click", "style": "processIcon"}); iconSelectMenu.load(); node.iconMenu = iconSelectMenu; var _self = this; diff --git a/o2web/source/x_component_process_ProcessDesigner/Property.js b/o2web/source/x_component_process_ProcessDesigner/Property.js index 5005d5903e61ef9108c4026a6007eebd9093286e..5d27026864935ed3331fd8debd0ea4c441926ab2 100644 --- a/o2web/source/x_component_process_ProcessDesigner/Property.js +++ b/o2web/source/x_component_process_ProcessDesigner/Property.js @@ -913,7 +913,9 @@ MWF.xApplication.process.ProcessDesigner.Property = new Class({ selectIcon: function(node){ if (!node.iconMenu){ - var iconSelectMenu = new MWF.widget.Menu(node, {"event": "click", "style": "processIcon"}); + var tr = node.getParent("tr"); + var p = tr.getPosition(this.process.designer.paperInNode.getNext()); + var iconSelectMenu = new MWF.widget.Menu(node, {"left": p.x-330, "top": p.y, "event": "click", "style": "processIcon"}); iconSelectMenu.load(); node.iconMenu = iconSelectMenu; var _self = this;