From: gmungoc Date: Wed, 22 Apr 2015 14:21:22 +0000 (+0100) Subject: JAL-845 fix SplitFrame sizing on eXpand Views X-Git-Tag: Jalview_2_9~58 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f27f81a74bbe1be141d23df8aba578515e3179a2;p=jalview.git JAL-845 fix SplitFrame sizing on eXpand Views --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index db5bbe5..5f45dc1 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -2981,9 +2981,13 @@ public class Desktop extends jalview.jbgui.GDesktop implements */ AlignmentPanel topPanel = (AlignmentPanel) topPanels.get(i); AlignFrame newTopFrame = new AlignFrame(topPanel); + newTopFrame.setSize(new Dimension(AlignFrame.DEFAULT_WIDTH, + AlignFrame.DEFAULT_HEIGHT)); newTopFrame.setVisible(true); AlignmentPanel bottomPanel = (AlignmentPanel) bottomPanels.get(i); AlignFrame newBottomFrame = new AlignFrame(bottomPanel); + newBottomFrame.setSize(new Dimension(AlignFrame.DEFAULT_WIDTH, + AlignFrame.DEFAULT_HEIGHT)); newBottomFrame.setVisible(true); topPanel.av.setGatherViewsHere(false); bottomPanel.av.setGatherViewsHere(false);