setVisible flag sent to EditNameDialog
[jalview.git] / src / jalview / appletgui / AnnotationPanel.java
index 101bddf..ee9e159 100755 (executable)
@@ -225,7 +225,7 @@ public class AnnotationPanel
   String enterLabel(String text, String label)\r
   {\r
     EditNameDialog dialog = new EditNameDialog(text,null,label,null,\r
-        ap.alignFrame,"Enter Label", 400,200);\r
+        ap.alignFrame,"Enter Label", 400,200, true);\r
 \r
     if(dialog.accept)\r
       return dialog.getName();\r
@@ -370,8 +370,8 @@ public class AnnotationPanel
   {\r
     // setHeight of panels\r
     AlignmentAnnotation[] aa = av.alignment.getAlignmentAnnotation();\r
-\r
     int height = 0;\r
+\r
     if (aa != null)\r
     {\r
       for (int i = 0; i < aa.length; i++)\r
@@ -387,6 +387,7 @@ public class AnnotationPanel
         {\r
           aa[i].height += av.charHeight;\r
         }\r
+\r
         if (aa[i].hasIcons)\r
         {\r
           aa[i].height += 16;\r
@@ -394,13 +395,14 @@ public class AnnotationPanel
 \r
         if (aa[i].graph > 0)\r
         {\r
-          aa[i].height += GRAPH_HEIGHT;\r
+          aa[i].height += aa[i].graphHeight;\r
         }\r
 \r
         if (aa[i].height == 0)\r
         {\r
           aa[i].height = 20;\r
         }\r
+\r
         height += aa[i].height;\r
       }\r
     }\r