Skip to content

Commit 5ee7534

Browse files
committed
PORT_MARGIN_TOP
1 parent ac18b0b commit 5ee7534

File tree

1 file changed

+3
-2
lines changed
  • services/static-webserver/client/source/class/osparc/workbench

1 file changed

+3
-2
lines changed

services/static-webserver/client/source/class/osparc/workbench/NodeUI.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ qx.Class.define("osparc.workbench.NodeUI", {
134134
NODE_HEIGHT: 80,
135135
FILE_NODE_WIDTH: 120,
136136
PORT_DIAMETER: 18,
137-
PORT_WIDTH: 11,
137+
PORT_MARGIN_TOP: 4,
138138
CONTENT_PADDING: 2,
139139
PORT_CONNECTED: "@FontAwesome5Regular/dot-circle/18",
140140
PORT_DISCONNECTED: "@FontAwesome5Regular/circle/18",
@@ -853,6 +853,7 @@ qx.Class.define("osparc.workbench.NodeUI", {
853853
source: this.self().PORT_DISCONNECTED, // disconnected by default
854854
height: width,
855855
width: width,
856+
marginTop: this.self().PORT_MARGIN_TOP,
856857
draggable: true,
857858
droppable: true,
858859
alignY: "top",
@@ -888,7 +889,7 @@ qx.Class.define("osparc.workbench.NodeUI", {
888889
const bounds = this.getCurrentBounds();
889890
const captionHeight = Math.max(this.getChildControl("captionbar").getSizeHint().height, this.self().captionHeight());
890891
const x = port.isInput ? bounds.left - 6 : bounds.left + bounds.width - 1;
891-
const y = bounds.top + captionHeight + this.self().PORT_DIAMETER/2 + 2;
892+
const y = bounds.top + captionHeight + this.self().PORT_DIAMETER/2 + this.self().PORT_MARGIN_TOP + 2;
892893
return [x, y];
893894
},
894895

0 commit comments

Comments
 (0)