use NEW_WINDOW_WIDTH
authoramwaterhouse <Andrew Waterhouse>
Wed, 13 Apr 2005 16:35:22 +0000 (16:35 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 13 Apr 2005 16:35:22 +0000 (16:35 +0000)
src/jalview/gui/PairwiseAlignPanel.java

index 0d3b0f3..972d4f5 100755 (executable)
@@ -63,11 +63,9 @@ public class PairwiseAlignPanel extends GPairwiseAlignPanel
 \r
 \r
       AlignFrame af = new AlignFrame(new Alignment(seq));\r
-      int newHeight = seq.length * af.viewport.getCharHeight() + 200;\r
-      if(newHeight>500)\r
-        newHeight=500;\r
-\r
-      Desktop.addInternalFrame(af, "Pairwise Aligned Sequences", 700,newHeight);\r
+      Desktop.addInternalFrame(af, "Pairwise Aligned Sequences",\r
+                               AlignFrame.NEW_WINDOW_WIDTH,\r
+                               AlignFrame.NEW_WINDOW_HEIGHT);\r
 \r
   }\r
 \r