mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-17 23:16:03 +00:00
Update node.ts
This commit is contained in:
parent
b134a7fecf
commit
e11281ddf6
@ -87,13 +87,11 @@ export class NodeWidget implements Widget {
|
||||
})
|
||||
.attr('xnode:href', (n: MapNode) => n.symbolUrl)
|
||||
.attr('width', (n: MapNode) => {
|
||||
if (n.width < 60) return 60
|
||||
if (n.width > 80) return 80
|
||||
if (!n.width) return 60
|
||||
return n.width
|
||||
})
|
||||
.attr('height', (n: MapNode) => {
|
||||
if (n.height < 60) return 60
|
||||
if (n.height > 80) return 80
|
||||
if (!n.height) return 60
|
||||
return n.height
|
||||
})
|
||||
.attr('x', (n: MapNode) => 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user