From 9b7ee35c6b9909b030b5b04e33266acf8d5ad637 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 30 Jun 2011 12:50:45 +0100 Subject: [PATCH] set initial annotation panel height appropriately (JAL-564, JAL-306) --- src/jalview/appletgui/AlignFrame.java | 1 + src/jalview/appletgui/AlignmentPanel.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/jalview/appletgui/AlignFrame.java b/src/jalview/appletgui/AlignFrame.java index 3654e0c..8387089 100644 --- a/src/jalview/appletgui/AlignFrame.java +++ b/src/jalview/appletgui/AlignFrame.java @@ -145,6 +145,7 @@ public class AlignFrame extends EmbmenuFrame implements ActionListener, alignPanel.alabels.addKeyListener(this); createAlignFrameWindow(embedded, title); alignPanel.validate(); + alignPanel.adjustAnnotationHeight(); alignPanel.paintAlignment(true); } diff --git a/src/jalview/appletgui/AlignmentPanel.java b/src/jalview/appletgui/AlignmentPanel.java index 60e8cb1..9d19cf3 100644 --- a/src/jalview/appletgui/AlignmentPanel.java +++ b/src/jalview/appletgui/AlignmentPanel.java @@ -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); -- 1.7.10.2