From 0e9be8638839b988ef4100f3ff0368c187d1a623 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 16 Apr 2019 12:41:55 +0200 Subject: [PATCH] Fixed relation line Former-commit-id: 82543a898b570ac648d5ec4a3d71e830b8ac5597 --- visual_console_client/src/VisualConsole.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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({