Skip to content

Commit

Permalink
fix: add -80 to y coordinates before its drawn and sent to server (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenjohanson authored Jul 15, 2024
1 parent aa25a61 commit dc42961
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions teammapper-frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,15 @@
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"proxyConfig": "src/proxy.conf.json",
"buildTarget": "teammapper:build"
"buildTarget": "teammapper:build",
},
"configurations": {
"production": {
"buildTarget": "teammapper:build:production"
},
"development": {
"buildTarget": "teammapper:build:development"
"buildTarget": "teammapper:build:development",
"disableHostCheck": true
}
},
"defaultConfiguration": "development"
Expand Down
4 changes: 1 addition & 3 deletions teammapper-frontend/mmp/src/map/handlers/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,7 @@ export default class Nodes {
if (siblings.length > 0) {
const lowerNode = this.getLowerNode(siblings)
coordinates.y = lowerNode.coordinates.y + 60
} else if(node.detached) {
coordinates.y -= 80
} else {
} else if (!node.detached) {
coordinates.y -= 120
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class MmpService implements OnDestroy {
const currentNode = this.selectNode();
newProps.coordinates = {
x: currentNode.coordinates.x,
y: currentNode.coordinates.y,
y: currentNode.coordinates.y - 80,
};
}

Expand Down

0 comments on commit dc42961

Please sign in to comment.