clarified window size;
authorwenzelm
Mon, 21 Dec 2020 22:55:57 +0100
changeset 72977 e028331c578b
parent 72976 51442c6dc296
child 72978 7e7ed27fe625
clarified window size;
src/Pure/Tools/java_monitor.scala
--- a/src/Pure/Tools/java_monitor.scala	Mon Dec 21 22:47:53 2020 +0100
+++ b/src/Pure/Tools/java_monitor.scala	Mon Dec 21 22:55:57 2020 +0100
@@ -43,8 +43,8 @@
       val jconsole = new JConsole(false)
 
       val screen = GUI.mouse_location()
-      val width = 1200 min screen.bounds.width
-      val height = 900 min screen.bounds.height
+      val width = (1200 max (screen.bounds.width / 2)) min screen.bounds.width
+      val height = (900 max (screen.bounds.height / 2)) min screen.bounds.height
       jconsole.setBounds(
         screen.bounds.x + (screen.bounds.width - width) / 2,
         screen.bounds.y + (screen.bounds.height - height) / 2,