Skip to content

Commit

Permalink
fix styling for canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
Salipa-Gurung committed Jul 3, 2024
1 parent 17a5579 commit b32ca75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <Types.IStackViewport>this.renderingEngine.getViewport(viewportId)
Expand Down

0 comments on commit b32ca75

Please sign in to comment.