diff --git a/src/badger/gui/mini/pages/routine_page.py b/src/badger/gui/mini/pages/routine_page.py index 4bed3b91..418dcd04 100644 --- a/src/badger/gui/mini/pages/routine_page.py +++ b/src/badger/gui/mini/pages/routine_page.py @@ -48,6 +48,7 @@ get_table_content_as_dict, set_init_data_table, update_init_data_table, + resize_columns_to_content_or_default, ) from badger.gui.mini.components.env_cbox import BadgerEnvBox from badger.gui.windows.docs_window import BadgerDocsWindow @@ -1227,6 +1228,7 @@ def fill_curr_in_init_table(self, record=False): if record and self.env_box.relative_to_curr.isChecked(): self.init_table_actions.append({"type": "add_curr"}) + resize_columns_to_content_or_default(table) def save_add_rand_config(self, add_rand_config): self.add_rand_config = add_rand_config @@ -1295,6 +1297,7 @@ def add_rand_in_init_table(self, add_rand_config=None, record=True): "config": add_rand_config, } ) + resize_columns_to_content_or_default(table) def show_add_rand_dialog(self): dlg = BadgerAddRandomDialog( @@ -1317,6 +1320,7 @@ def clear_init_table(self, reset_actions=True): item = table.item(row, col) if item: item.setText("") # Set the cell content to an empty string + resize_columns_to_content_or_default(table) if reset_actions and self.env_box.relative_to_curr.isChecked(): self.init_table_actions = [] # reset the recorded actions