From b32ca75ed28afcbd2bf6fbe6f7a8a83d43c5bd1b Mon Sep 17 00:00:00 2001 From: Salipa-Gurung Date: Tue, 2 Jul 2024 17:15:41 +0545 Subject: [PATCH] fix styling for canvas --- src/App.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/App.vue b/src/App.vue index c83df425..90c2b888 100644 --- a/src/App.vue +++ b/src/App.vue @@ -241,6 +241,12 @@ export default defineComponent({ // enable element this.renderingEngine.enableElement(viewportInput) + var canvas = document.querySelector('canvas') + if (canvas) { + canvas.style.height = '100%' + canvas.style.width = '100%' + } + // get stack viewport that was created this.viewport = this.renderingEngine.getViewport(viewportId)