JAL-3377 add seq-annotations gap to cheight not to hgap
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 29 Jul 2019 10:44:06 +0000 (11:44 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 29 Jul 2019 10:44:06 +0000 (11:44 +0100)
src/jalview/gui/IdCanvas.java

index 42376c7..ab5585c 100755 (executable)
@@ -392,12 +392,12 @@ public class IdCanvas extends JPanel implements ViewportListenerI
     AnnotationLabels labels = null;
     if (alignViewport.isShowAnnotation())
     {
-      hgap += SeqCanvas.SEQS_ANNOTATION_GAP;
       if (ap == null)
       {
         ap = new AnnotationPanel(alignViewport);
       }
-      annotationHeight = ap.adjustPanelHeight();
+      annotationHeight = ap.adjustPanelHeight()
+              + SeqCanvas.SEQS_ANNOTATION_GAP;
       labels = new AnnotationLabels(alignViewport);
     }