From: gmungoc Date: Tue, 4 Jul 2017 10:05:15 +0000 (+0100) Subject: JAL-147 update ViewportRanges height after show/hide sequences X-Git-Tag: Release_2_10_3b1~132^2~52 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c64ec6731af1e2cffb4a449d7e19667f028326cc;p=jalview.git JAL-147 update ViewportRanges height after show/hide sequences --- 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()); } }