diff --git a/viplab-standalone-frontend-vue/src/components/vtk-plots/VtkComponent.vue b/viplab-standalone-frontend-vue/src/components/vtk-plots/VtkComponent.vue index 54ad3e9..4484c0f 100644 --- a/viplab-standalone-frontend-vue/src/components/vtk-plots/VtkComponent.vue +++ b/viplab-standalone-frontend-vue/src/components/vtk-plots/VtkComponent.vue @@ -265,6 +265,7 @@ export default { return this.enableAutoPlay; }, async renderFile() { + await this.$nextTick(); this.fullScreenRenderer = vtkFullScreenRenderWindow.newInstance({ background: [0.4, 0.44, 0.52], rootContainer: this.$refs.rootContainer, @@ -416,7 +417,6 @@ export default {