diff --git a/visual_console_client/src/VisualConsole.ts b/visual_console_client/src/VisualConsole.ts index dbdb148e97..a780d01cb9 100644 --- a/visual_console_client/src/VisualConsole.ts +++ b/visual_console_client/src/VisualConsole.ts @@ -504,12 +504,12 @@ export default class VisualConsole { const startX = parent.props.x + parent.elementRef.clientWidth / 2; const startY = parent.props.y + - (parent.elementRef.clientHeight + parent.labelElementRef.clientHeight) / + (parent.elementRef.clientHeight - parent.labelElementRef.clientHeight) / 2; const endX = child.props.x + child.elementRef.clientWidth / 2; const endY = child.props.y + - (child.elementRef.clientHeight + child.labelElementRef.clientHeight) / 2; + (child.elementRef.clientHeight - child.labelElementRef.clientHeight) / 2; const line = new Line( linePropsDecoder({