X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FSplashScreen.java;h=61273c74994e8ed3318effa0ece24c1b27989aef;hb=306825ab43e7e4232a913f304f6d18b532213b83;hp=2d5e63b48b89371960366fa5b287c49169456d9e;hpb=a0ca13ac05f537ec85620b982650df13826c121e;p=jalview.git diff --git a/src/jalview/gui/SplashScreen.java b/src/jalview/gui/SplashScreen.java index 2d5e63b..61273c7 100755 --- a/src/jalview/gui/SplashScreen.java +++ b/src/jalview/gui/SplashScreen.java @@ -267,7 +267,7 @@ public class SplashScreen extends JPanel splashText.setVisible(true); splashText.setSize(new Dimension(750, - 375 + logoSize + (Platform.isJS() ? 40 : 0))); + 425 + logoSize + (Platform.isJS() ? 40 : 0))); splashText.setBackground(bg); splashText.setForeground(fg); splashText.setFont(font); @@ -275,8 +275,10 @@ public class SplashScreen extends JPanel revalidate(); int width = Math.max(splashText.getWidth(), iconimg.getWidth()); int height = splashText.getHeight() + iconimg.getHeight(); - iframe.setBounds((Desktop.instance.getWidth() - width) / 2, - (Desktop.instance.getHeight() - height) / 2, width, height); + iframe.setBounds( + Math.max(0, (Desktop.instance.getWidth() - width) / 2), + Math.max(0, (Desktop.instance.getHeight() - height) / 2), + width, height); iframe.validate(); iframe.setVisible(true); return true;