From: amwaterhouse Date: Wed, 13 Apr 2005 16:35:22 +0000 (+0000) Subject: use NEW_WINDOW_WIDTH X-Git-Tag: Release_2_0~434 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1340920fd1b15c9bc8cd2284def7ec176a4989d5;p=jalview.git use NEW_WINDOW_WIDTH --- 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); }