set initial annotation panel height appropriately (JAL-564, JAL-306)
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 30 Jun 2011 11:50:45 +0000 (12:50 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 30 Jun 2011 11:50:45 +0000 (12:50 +0100)
src/jalview/appletgui/AlignFrame.java
src/jalview/appletgui/AlignmentPanel.java

index 3654e0c..8387089 100644 (file)
@@ -145,6 +145,7 @@ public class AlignFrame extends EmbmenuFrame implements ActionListener,
     alignPanel.alabels.addKeyListener(this);\r
     createAlignFrameWindow(embedded, title);\r
     alignPanel.validate();\r
+    alignPanel.adjustAnnotationHeight();\r
     alignPanel.paintAlignment(true);\r
   }\r
 \r
index 60e8cb1..9d19cf3 100644 (file)
@@ -177,6 +177,7 @@ public class AlignmentPanel extends Panel implements AdjustmentListener, Alignme
     Dimension d = calculateIdWidth();
     d.setSize(d.width + 4, seqPanel.seqCanvas.getSize().height);
     alabels.setSize(d.width + 4, ap);
+    
     idPanel.idCanvas.setSize(d);
     hscrollFillerPanel.setSize(d);