setting graph dimensions to size of svg not window
This commit is contained in:
1 parent
13c9b1018b
commit
96dac08eb2
1 file changed
+2
-2
@@ -42,12 +42,12 @@ export class NlsCanvasService {
|
|||||||
this.renderer.setStyle(
|
this.renderer.setStyle(
|
||||||
this.canvas,
|
this.canvas,
|
||||||
'width',
|
'width',
|
||||||
window.innerWidth
|
this.canvas.innerWidth
|
||||||
);
|
);
|
||||||
this.renderer.setStyle(
|
this.renderer.setStyle(
|
||||||
this.canvas,
|
this.canvas,
|
||||||
'height',
|
'height',
|
||||||
window.innerHeight
|
this.canvas.innerHeight
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user