setting graph dimensions to size of svg not window
This commit is contained in:
@@ -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