Skip to content

Render VTK in a smaller window #85

Answered by jourdain
pazars asked this question in Trame/VTK
Discussion options

You must be logged in to vote

This is the expected behavior.

Basically to understand the concept, you need to think in the same way as a window on a house or a building. The size of the window is not affected by the size of the world out there but by the layout of the facade or the size set to that window. For the vtk window/view, it is the same. The layout will either provide room for its content or not...

In your case, your layout was not imposing any size (no fill-height) to your window and you did not fix it either (style="width: 200px; height: 500px;"). Therefore the window has a height of 0 which made it "invisible".

HTH

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pazars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants