note to callers of adjustPanelHeight
[jalview.git] / src / jalview / gui / AnnotationPanel.java
index 42ca1b6..350cf65 100755 (executable)
@@ -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;
   }