From 89eb77ddf3ecb46bef489783ca84818a99e90a04 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 19 Nov 2018 16:35:30 +0000 Subject: [PATCH] =?utf8?q?JAL-3127=20JAL-2773=20don=E2=80=99t=20need=20to=20?= =?utf8?q?call=20paintAlignment=20here?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/gui/AnnotationChooser.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/jalview/gui/AnnotationChooser.java b/src/jalview/gui/AnnotationChooser.java index 84883d7..791421d 100644 --- a/src/jalview/gui/AnnotationChooser.java +++ b/src/jalview/gui/AnnotationChooser.java @@ -195,14 +195,7 @@ public class AnnotationChooser extends JPanel { setAnnotationVisibility(true); - // copied from AnnotationLabel.actionPerformed (after show/hide row)... - // TODO should drive this functionality into AlignmentPanel ap.updateAnnotation(); - // this.ap.annotationPanel.adjustPanelHeight(); - // this.ap.alabels.setSize(this.ap.alabels.getSize().width, - // this.ap.annotationPanel.getSize().height); - // this.ap.validate(); - this.ap.paintAlignment(true, false); } /** @@ -229,11 +222,6 @@ public class AnnotationChooser extends JPanel } } ap.updateAnnotation(); - // // this.ap.annotationPanel.adjustPanelHeight(); - // this.ap.alabels.setSize(this.ap.alabels.getSize().width, - // this.ap.annotationPanel.getSize().height); - // this.ap.validate(); - this.ap.paintAlignment(true, false); } /** @@ -249,9 +237,7 @@ public class AnnotationChooser extends JPanel { setAnnotationVisibility(false); - this.ap.updateAnnotation(); - // this.ap.annotationPanel.adjustPanelHeight(); - this.ap.paintAlignment(true, false); + ap.updateAnnotation(); } /** -- 1.7.10.2