From 02eb22e4cc036264e8e2d1fa19355d8c655d7bff Mon Sep 17 00:00:00 2001
From: dblouin <Dominique.Blouin@hpi.de>
Date: Thu, 12 Jan 2017 14:09:46 +0100
Subject: [PATCH] Issue #17: Limit the size of opening dialogs to the size of
 the screen

---
 src/ui/TGCAttributeBox.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ui/TGCAttributeBox.java b/src/ui/TGCAttributeBox.java
index 0d60a4a7d9..7ef86760c8 100755
--- a/src/ui/TGCAttributeBox.java
+++ b/src/ui/TGCAttributeBox.java
@@ -195,8 +195,8 @@ public abstract class TGCAttributeBox extends TGCWithoutInternalComponent {
         String oldValue = value;
         JDialogAttribute jda = new JDialogAttribute(myAttributes, forbiddenNames, frame, "Setting " + attributeText + "s of " + father.getValue(), attributeText);
         setJDialogOptions(jda);
-        jda.setSize(650, 375);
-        GraphicLib.centerOnParent(jda);
+    //    jda.setSize(650, 375);
+        GraphicLib.centerOnParent(jda, 650, 375);
         jda.setVisible(true); // blocked until dialog has been closed
         makeValue();
         if (oldValue.equals(value)) {
-- 
GitLab