Skip to content

Commit 0eaf425

Browse files
fix: Button positioning when resizing
1 parent f3c39bc commit 0eaf425

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansys/tools/visualization_interface/backends/plotly/widgets/button_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def _update_dropdowns(self) -> None:
222222
# This is a dropdown menu
223223
updatemenu = button_info["button"]
224224
else:
225-
# This is a regular button
225+
# This is a regular button - create individual updatemenu for each
226226
updatemenu = {
227227
"type": "buttons",
228228
"buttons": [button_info["button"]],
@@ -231,7 +231,7 @@ def _update_dropdowns(self) -> None:
231231
"xanchor": button_info["xanchor"],
232232
"yanchor": button_info["yanchor"],
233233
"showactive": False,
234-
"direction": "down",
234+
"direction": "left",
235235
"bgcolor": "rgba(255,255,255,0.95)",
236236
"bordercolor": "rgba(0,0,0,0.3)",
237237
"borderwidth": 1,

0 commit comments

Comments
 (0)