mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-12 05:23:15 +00:00
Fix drawing lines, Ref: #111
This commit is contained in:
parent
7415a915ed
commit
03b61b371a
@ -286,7 +286,7 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
|||||||
const data = drawingLineTool.stop();
|
const data = drawingLineTool.stop();
|
||||||
this.onLineCreation(data['node'], data['port'], node, port);
|
this.onLineCreation(data['node'], data['port'], node, port);
|
||||||
} else {
|
} else {
|
||||||
drawingLineTool.start(node.x, node.y, {
|
drawingLineTool.start(node.x + node.width / 2., node.y + node.height / 2., {
|
||||||
'node': node,
|
'node': node,
|
||||||
'port': port
|
'port': port
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user