Skip to content

Commit

Permalink
updating code
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresOrtegaGuerrero committed Jan 7, 2025
1 parent 9c7a80c commit 9de1775
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ def _render(self):
""")
self.atom_coordinates_table = TableWidget()
self._generate_table(structure.get_ase())
self.atom_coordinates_table.observe(self._change_selection, "selected_rows")
# Listen for changes in self.widget.displayed_selection and update the table
self.widget.observe(self._update_table_selection, "displayed_selection")


# Basic widgets
children = [
self.widget,
Expand All @@ -45,6 +42,9 @@ def _render(self):

# Add the children to the container
self.results_container.children = tuple(children)
self.atom_coordinates_table.observe(self._change_selection, "selected_rows")
# Listen for changes in self.widget.displayed_selection and update the table
self.widget.observe(self._update_table_selection, "displayed_selection")

# HACK to resize the NGL viewer in cases where it auto-rendered when its
# container was not displayed, which leads to a null width. This hack restores
Expand Down

0 comments on commit 9de1775

Please sign in to comment.