From c64ec6731af1e2cffb4a449d7e19667f028326cc Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 4 Jul 2017 11:05:15 +0100 Subject: [PATCH] JAL-147 update ViewportRanges height after show/hide sequences --- src/jalview/viewmodel/AlignmentViewport.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jalview/viewmodel/AlignmentViewport.java b/src/jalview/viewmodel/AlignmentViewport.java index 1e094fd..7b64ab3 100644 --- a/src/jalview/viewmodel/AlignmentViewport.java +++ b/src/jalview/viewmodel/AlignmentViewport.java @@ -1408,6 +1408,7 @@ public abstract class AlignmentViewport implements AlignViewportI, hiddenRepSequences = null; + ranges.setViewportStartAndHeight(0, alignment.getHeight()); firePropertyChange("alignment", null, alignment.getSequences()); // used to set hasHiddenRows/hiddenRepSequences here, after the property // changed event @@ -1432,6 +1433,7 @@ public abstract class AlignmentViewport implements AlignViewportI, selectionGroup.addSequence(seq, false); setSequenceAnnotationsVisible(seq, true); } + ranges.setViewportStartAndHeight(0, alignment.getHeight()); firePropertyChange("alignment", null, alignment.getSequences()); sendSelection(); } @@ -1460,6 +1462,7 @@ public abstract class AlignmentViewport implements AlignViewportI, alignment.getHiddenSequences().hideSequence(seq[i]); setSequenceAnnotationsVisible(seq[i], false); } + ranges.setViewportStartAndHeight(0, alignment.getHeight()); firePropertyChange("alignment", null, alignment.getSequences()); } } -- 1.7.10.2