mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-20 07:33:50 +00:00
Context with centering
This commit is contained in:
@ -83,7 +83,7 @@ export class MapComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
|
|
||||||
this.svg = rootElement.select<SVGSVGElement>('svg');
|
this.svg = rootElement.select<SVGSVGElement>('svg');
|
||||||
|
|
||||||
this.graphContext = new Context();
|
this.graphContext = new Context(true);
|
||||||
|
|
||||||
if (this.windowFullSize) {
|
if (this.windowFullSize) {
|
||||||
this.graphContext.setSize(this.getSize());
|
this.graphContext.setSize(this.getSize());
|
||||||
|
Reference in New Issue
Block a user