mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-18 23:36:53 +00:00
Update node.service.ts
This commit is contained in:
parent
6d0f41714a
commit
57490b7272
@ -70,7 +70,7 @@ export class NodeService {
|
||||
|
||||
if (project.snap_to_grid) {
|
||||
xPosition = Math.round((xPosition + node.width/2) / project.grid_size) * project.grid_size;
|
||||
yPosition = Math.round((yPosition + node.width/2) / project.grid_size) * project.grid_size;
|
||||
yPosition = Math.round((yPosition + node.height/2) / project.grid_size) * project.grid_size;
|
||||
|
||||
xPosition = Math.round(xPosition - node.width/2);
|
||||
yPosition = Math.round(yPosition - node.height/2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user