mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-18 18:56:26 +00:00
Update node.ts
This commit is contained in:
parent
f508242858
commit
85ab218bc2
@ -103,8 +103,12 @@ export class NodeWidget implements Widget {
|
||||
if (n.height > 64) return 64;
|
||||
return n.height;
|
||||
})
|
||||
.attr('x', (n: MapNode) => 0)
|
||||
.attr('y', (n: MapNode) => 0)
|
||||
.attr('x', (n: MapNode) => {
|
||||
return 0
|
||||
})
|
||||
.attr('y', (n: MapNode) => {
|
||||
return 0
|
||||
})
|
||||
.on('mouseover', function(this, n: MapNode) {
|
||||
select(this).attr('class', 'over');
|
||||
})
|
||||
@ -113,6 +117,7 @@ export class NodeWidget implements Widget {
|
||||
});
|
||||
|
||||
node_body_merge.attr('transform', (n: MapNode) => {
|
||||
if (!n.width) return `translate(${n.x - 30},${n.y - 30})`
|
||||
return `translate(${n.x},${n.y})`;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user