Skip to content

Commit 5993e78

Browse files
committed
WIP: css box computation to fast, results in height 0
1 parent fafe14e commit 5993e78

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

viplab-standalone-frontend-vue/src/components/vtk-plots/VtkComponent.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ export default {
265265
return this.enableAutoPlay;
266266
},
267267
async renderFile() {
268+
await this.$nextTick();
268269
this.fullScreenRenderer = vtkFullScreenRenderWindow.newInstance({
269270
background: [0.4, 0.44, 0.52],
270271
rootContainer: this.$refs.rootContainer,
@@ -416,7 +417,6 @@ export default {
416417
<!-- Add "scoped" attribute to limit CSS to this component only -->
417418
<style scoped>
418419
#vtk-content {
419-
position: relative;
420420
display: flex;
421421
flex-flow: column nowrap;
422422
align-items: stretch;
@@ -428,7 +428,6 @@ export default {
428428
}
429429
430430
.file-controller {
431-
position: absolute;
432431
bottom: 0;
433432
left: 0;
434433
right: 0;
@@ -448,7 +447,6 @@ export default {
448447
}
449448
450449
.vtk-geometry-controls {
451-
position: absolute;
452450
top: 0;
453451
left: 0;
454452
right: 0;

0 commit comments

Comments
 (0)