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 2, 2024
1 parent 4efd10f commit 1e1404b
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 1e1404b

Please sign in to comment.