Merge remote-tracking branch 'refs/remotes/origin/master' into new-math-rules

This commit is contained in:
Andrea Cavalli 2017-12-24 12:44:16 +01:00
commit 2d1f6b0e81

View File

@ -209,7 +209,9 @@ public class SwingWindow extends JFrame {
@Override
public void setSize(int width, int height) {
c.setSize(width*mult, height*mult);
c.setSize(new Dimension(width*mult, height*mult));
c.setPreferredSize(new Dimension(width*mult, height*mult));
super.getContentPane().setSize(new Dimension(width*mult, height*mult));
super.getContentPane().setPreferredSize(new Dimension(width*mult, height*mult));
super.pack();
}