From e29fee043997a3aa71b1b610f30483c7c9765045 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 22 Mar 2010 17:16:30 +0000 Subject: [PATCH] note to callers of adjustPanelHeight --- src/jalview/gui/AnnotationPanel.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 42ca1b6..350cf65 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -126,7 +126,10 @@ public class AnnotationPanel extends JPanel implements MouseListener, } /** - * DOCUMENT ME! + * Calculates the height of the annotation displayed in the annotation panel. + * Callers should normally call the ap.adjustAnnotationHeight method to ensure all + * annotation associated components are updated correctly. + * */ public int adjustPanelHeight() { @@ -174,6 +177,7 @@ public class AnnotationPanel extends JPanel implements MouseListener, } this.setPreferredSize(new Dimension(1, height)); + ap.alabels.validate(); return height; } -- 1.7.10.2