Skip to content

Commit 445c7b8

Browse files
committed
docs(multi-view): trigger 2 render
1 parent 5ec0c85 commit 445c7b8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • examples/06_vtk/03_MultiViews

examples/06_vtk/03_MultiViews/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ def update_cone(resolution=DEFAULT_RESOLUTION, **kwargs):
9191

9292

9393
def update_reset_resolution():
94-
state.resolution = DEFAULT_RESOLUTION
94+
with state:
95+
state.resolution = DEFAULT_RESOLUTION
96+
97+
ctrl.update_views()
9598

9699

97100
# -----------------------------------------------------------------------------
@@ -112,6 +115,7 @@ def update_reset_resolution():
112115
hide_details=True,
113116
dense=True,
114117
style="max-width: 300px",
118+
end=ctrl.update_views,
115119
)
116120
vuetify.VDivider(vertical=True, classes="mx-2")
117121
with vuetify.VBtn(icon=True, click=update_reset_resolution):

0 commit comments

Comments
 (0)