From 1340920fd1b15c9bc8cd2284def7ec176a4989d5 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 13 Apr 2005 16:35:22 +0000 Subject: [PATCH] use NEW_WINDOW_WIDTH --- src/jalview/gui/PairwiseAlignPanel.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/jalview/gui/PairwiseAlignPanel.java b/src/jalview/gui/PairwiseAlignPanel.java index 0d3b0f3..972d4f5 100755 --- a/src/jalview/gui/PairwiseAlignPanel.java +++ b/src/jalview/gui/PairwiseAlignPanel.java @@ -63,11 +63,9 @@ public class PairwiseAlignPanel extends GPairwiseAlignPanel AlignFrame af = new AlignFrame(new Alignment(seq)); - int newHeight = seq.length * af.viewport.getCharHeight() + 200; - if(newHeight>500) - newHeight=500; - - Desktop.addInternalFrame(af, "Pairwise Aligned Sequences", 700,newHeight); + Desktop.addInternalFrame(af, "Pairwise Aligned Sequences", + AlignFrame.NEW_WINDOW_WIDTH, + AlignFrame.NEW_WINDOW_HEIGHT); } -- 1.7.10.2