Scroll lists to top when switching between groups and actions

This commit is contained in:
2021-02-14 09:11:03 -06:00
parent 27bae38291
commit c24a9d9673

View File

@@ -310,6 +310,8 @@ module TAC
end end
def populate_groups_list def populate_groups_list
@groups_list.scroll_top = 0
groups = [] groups = []
unless @options[:group_is_preset] || @options[:action_is_preset] unless @options[:group_is_preset] || @options[:action_is_preset]
@@ -345,6 +347,8 @@ module TAC
end end
def populate_actions_list(group) def populate_actions_list(group)
@actions_list.scroll_top = 0
actions = group.actions actions = group.actions
@actions_list.clear do @actions_list.clear do
@@ -384,6 +388,8 @@ module TAC
end end
def populate_variables_list(action) def populate_variables_list(action)
@variables_list.scroll_top = 0
variables = action.variables variables = action.variables
@variables_list.clear do @variables_list.clear do