From: gmungoc Date: Mon, 29 Jul 2019 10:44:06 +0000 (+0100) Subject: JAL-3377 add seq-annotations gap to cheight not to hgap X-Git-Tag: Release_2_11_1_0~28^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8f737246c031bae47c05363b5d5aef29567fa38d;p=jalview.git JAL-3377 add seq-annotations gap to cheight not to hgap --- 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); }