tdf#123586 Set minimum size for beanshell editor

Change-Id: I49e2ca387de5d520efdda0c964203c530fe016c4
Reviewed-on: https://gerrit.libreoffice.org/69394
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java
index ca00b6c..5cb701e 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java
@@ -29,6 +29,7 @@ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.Dimension;

import java.io.IOException;
import java.io.InputStream;
@@ -304,6 +305,7 @@ public class ScriptEditorForBeanShell implements ScriptEditor, ActionListener {
        frame.pack();
        frame.setSize(590, 480);
        frame.setLocation(300, 200);
        frame.setMinimumSize(new Dimension(500, 300));
    }

    private void doClose() {