Skip to content

Commit 5339a2f

Browse files
fix: Button positioning when resizing (#398)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 703529e commit 5339a2f

File tree

3 files changed

+203
-193
lines changed

3 files changed

+203
-193
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix: Button positioning when resizing

src/ansys/tools/visualization_interface/backends/plotly/plotly_interface.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ def __init__(self) -> None:
4141
self._button_manager = ButtonManager(self._fig)
4242

4343
# Stack buttons vertically on the left side
44-
self._button_manager.add_plane_view_buttons()
45-
self._button_manager.add_coordinate_system_toggle_button()
46-
self._button_manager.add_projection_toggle_button()
47-
self._button_manager.add_theme_toggle_button()
44+
self._button_manager.update_layout()
4845

4946
def _pv_to_mesh3d(self, pv_mesh: Union[PolyData, pv.MultiBlock]) -> Union[go.Mesh3d, list]:
5047
"""Convert a PyVista PolyData or MultiBlock mesh to Plotly Mesh3d format.

0 commit comments

Comments
 (0)