Fixed relation line

Former-commit-id: 82543a898b570ac648d5ec4a3d71e830b8ac5597
This commit is contained in:
Daniel Maya 2019-04-16 12:41:55 +02:00
parent 9be6029e1a
commit 0e9be86388
1 changed files with 2 additions and 2 deletions

View File

@ -504,12 +504,12 @@ export default class VisualConsole {
const startX = parent.props.x + parent.elementRef.clientWidth / 2; const startX = parent.props.x + parent.elementRef.clientWidth / 2;
const startY = const startY =
parent.props.y + parent.props.y +
(parent.elementRef.clientHeight + parent.labelElementRef.clientHeight) / (parent.elementRef.clientHeight - parent.labelElementRef.clientHeight) /
2; 2;
const endX = child.props.x + child.elementRef.clientWidth / 2; const endX = child.props.x + child.elementRef.clientWidth / 2;
const endY = const endY =
child.props.y + child.props.y +
(child.elementRef.clientHeight + child.labelElementRef.clientHeight) / 2; (child.elementRef.clientHeight - child.labelElementRef.clientHeight) / 2;
const line = new Line( const line = new Line(
linePropsDecoder({ linePropsDecoder({