mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-21 18:06:38 +00:00
Update project-map.component.ts
This commit is contained in:
parent
02e614de42
commit
ee943eacad
@ -268,7 +268,7 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
applyScalingOfNodeSymbols() {
|
applyScalingOfNodeSymbols() {
|
||||||
this.nodesDataSource.getItems().forEach((node) => {
|
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);
|
let newDimensions = this.symbolService.scaleDimensionsForNode(node);
|
||||||
node.width = newDimensions.width;
|
node.width = newDimensions.width;
|
||||||
node.height = newDimensions.height;
|
node.height = newDimensions.height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user