Update project-map.component.ts

This commit is contained in:
piotrpekala7 2021-04-09 14:10:14 +02:00
parent 02e614de42
commit ee943eacad

View File

@ -268,7 +268,7 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
applyScalingOfNodeSymbols() {
this.nodesDataSource.getItems().forEach((node) => {
if ((node.width > this.symbolService.getMaximumSymbolSize() || node.height > this.symbolService.getMaximumSymbolSize()) && !(node.node_type === 'cloud' || node.node_type === 'nat')) {
if (node.height > this.symbolService.getMaximumSymbolSize()) {
let newDimensions = this.symbolService.scaleDimensionsForNode(node);
node.width = newDimensions.width;
node.height = newDimensions.height;