JAL-1588 restore ChimeraViewFrame geometry as well
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 17 Jun 2015 08:30:03 +0000 (09:30 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 17 Jun 2015 08:30:03 +0000 (09:30 +0100)
src/jalview/gui/Jalview2XML.java

index 80cff07..e443512 100644 (file)
@@ -3481,8 +3481,11 @@ public class Jalview2XML
     final SequenceI[][] seqsArray = allseqs.toArray(new SequenceI[allseqs
             .size()][]);
     String newViewId = viewerData.getKey();
-    new ChimeraViewFrame(chimeraSessionFile, af.alignPanel, pdbArray,
+    ChimeraViewFrame cvf = new ChimeraViewFrame(chimeraSessionFile,
+            af.alignPanel, pdbArray,
             seqsArray, colourByChimera, colourBySequence, newViewId);
+    cvf.setSize(data.getWidth(), data.getHeight());
+    cvf.setLocation(data.getX(), data.getY());
   }
 
   /**