Skip to content
Discussion options

You must be logged in to vote

It looks like the router introduces an intermediate div in the html that doesn't span the full view, resulting in a vtk view with 0 width and 0 height.

Try replacing with the following lines:

with layout.content:
    router.RouterView(classes="v-container v-container--fluid pa-0 fill-height")

And here is a full example showing two vtk views working correctly with the router:

from trame.app import get_server
from trame.ui.router import RouterViewLayout
from trame.widgets import html, router

from trame.ui.vuetify3 import SinglePageLayout
from trame.widgets import vtk as vtk_widgets
from trame.widgets import vuetify3 as vuetify

from vtkmodules.vtkFiltersSources import vtkConeSource, vtkSph…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wanqing0421
Comment options

Answer selected by wanqing0421
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants