Skip to content

Commit ac18b0b

Browse files
committed
minor
1 parent 8107474 commit ac18b0b

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ qx.Class.define("osparc.workbench.NodeUI", {
6363
captionBar.set({
6464
cursor: "move",
6565
paddingRight: 0,
66-
paddingLeft: this.self().PORT_WIDTH
66+
paddingLeft: this.self().PORT_DIAMETER - 6,
6767
});
6868

6969
const menuBtn = this.__getMenuButton();
@@ -133,7 +133,7 @@ qx.Class.define("osparc.workbench.NodeUI", {
133133
NODE_WIDTH: 180,
134134
NODE_HEIGHT: 80,
135135
FILE_NODE_WIDTH: 120,
136-
PORT_HEIGHT: 18,
136+
PORT_DIAMETER: 18,
137137
PORT_WIDTH: 11,
138138
CONTENT_PADDING: 2,
139139
PORT_CONNECTED: "@FontAwesome5Regular/dot-circle/18",
@@ -845,7 +845,7 @@ qx.Class.define("osparc.workbench.NodeUI", {
845845

846846
__createPort: function(isInput, placeholder = false) {
847847
let port = null;
848-
const width = this.self().PORT_HEIGHT;
848+
const width = this.self().PORT_DIAMETER;
849849
if (placeholder) {
850850
port = new qx.ui.core.Spacer(width, width);
851851
} else {
@@ -888,7 +888,7 @@ qx.Class.define("osparc.workbench.NodeUI", {
888888
const bounds = this.getCurrentBounds();
889889
const captionHeight = Math.max(this.getChildControl("captionbar").getSizeHint().height, this.self().captionHeight());
890890
const x = port.isInput ? bounds.left - 6 : bounds.left + bounds.width - 1;
891-
const y = bounds.top + captionHeight + this.self().PORT_HEIGHT/2 + 2;
891+
const y = bounds.top + captionHeight + this.self().PORT_DIAMETER/2 + 2;
892892
return [x, y];
893893
},
894894

0 commit comments

Comments
 (0)