Skip to content

Commit

Permalink
Scrolling seems to have corrected itself; update AtomicLib dependency…
Browse files Browse the repository at this point in the history
…; implement

grid_canvas.destroy()
  • Loading branch information
e-pettersen committed Jan 3, 2024
1 parent 6aa4b0b commit 67d2a31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bundles/profile_grids/bundle_info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<Dependency name="ChimeraX-Alignments" version="~=2.6"/>
<Dependency name="ChimeraX-AlignmentHdrs" version="~=3.2"/>
<Dependency name="ChimeraX-Arrays" build="true" version="~=1.0"/>
<Dependency name="ChimeraX-AtomicLibrary" build="true" version="~=10.0"/>
<Dependency name="ChimeraX-AtomicLibrary" build="true" version="~=12.0"/>
<Dependency name="ChimeraX-UI" version="~=1.24"/>
</Dependencies>

Expand Down
5 changes: 3 additions & 2 deletions src/bundles/profile_grids/src/grid_canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ def __init__(self, parent, pg, alignment, grid_data, weights):
self.main_view.show()
self.layout_alignment()

def destroy(self):
pass

def hide_header(self, header):
raise NotImplementedError("hide_header")
self.lead_block.hide_header(header)
Expand Down Expand Up @@ -228,8 +231,6 @@ def show_header(self, header):
self._update_scene_rects()

def _update_scene_rects(self):
#NOTE: scrolling doesn't work right for sequence viewer either if not wrapped, docked,
# and labels don't need horizontal scrollbar
# have to play with setViewportMargins to get correct scrolling...
#self.main_view.setViewportMargins(0, 0, 0, -20)
mbr = self.main_scene.itemsBoundingRect()
Expand Down

0 comments on commit 67d2a31

Please sign in to comment.