From 8f737246c031bae47c05363b5d5aef29567fa38d Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 29 Jul 2019 11:44:06 +0100 Subject: [PATCH] JAL-3377 add seq-annotations gap to cheight not to hgap --- src/jalview/gui/IdCanvas.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/IdCanvas.java b/src/jalview/gui/IdCanvas.java index 42376c7..ab5585c 100755 --- a/src/jalview/gui/IdCanvas.java +++ b/src/jalview/gui/IdCanvas.java @@ -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); } -- 1.7.10.2