JAL-3210 relocate setMinimumSize so it works in JS
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 14 Mar 2019 10:05:07 +0000 (10:05 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 14 Mar 2019 10:05:07 +0000 (10:05 +0000)
src/jalview/gui/PCAPanel.java

index 0a23517..d1e7565 100644 (file)
@@ -131,8 +131,6 @@ public class PCAPanel extends GPCAPanel
 
     addKeyListener(getRotatableCanvas());
     validate();
-
-    this.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
   }
 
   /**
@@ -206,6 +204,7 @@ public class PCAPanel extends GPCAPanel
               MessageManager.formatMessage("label.calc_title", "PCA",
                       getPcaModel().getScoreModelName()),
               475, 450);
+      this.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
     }
     working = false;
   }