JAL-3377 add seq-annotations gap to cheight not to hgap
[jalview.git] / 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);
     }