Skip to content

Commit c632cb5

Browse files
committed
feat(component editor): Scroll to the top after (re-)populating
1 parent cc19e6c commit c632cb5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ardupilot_methodic_configurator/frontend_tkinter_component_editor_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ def populate_frames(self) -> None:
347347
components = self.data_model.get_all_components()
348348
for key, value in components.items():
349349
self.add_widget(self.scroll_frame.view_port, key, value, [])
350+
# Scroll to the top after (re-)populating
351+
self.scroll_frame.canvas.yview("moveto", 0)
350352

351353
def add_widget(self, parent: tk.Widget, key: str, value: ComponentValue, path: list[str]) -> None:
352354
"""

0 commit comments

Comments
 (0)