ensure panel doesn't disappear when empty (patches for JAL-554 and JAL-570 and JAL...
authorjprocter <Jim Procter>
Fri, 4 Jun 2010 15:39:44 +0000 (15:39 +0000)
committerjprocter <Jim Procter>
Fri, 4 Jun 2010 15:39:44 +0000 (15:39 +0000)
src/jalview/gui/AnnotationPanel.java

index f408400..37c70b7 100755 (executable)
@@ -175,8 +175,9 @@ public class AnnotationPanel extends JPanel implements MouseListener,
         height += aa[i].height;
       }
     }
-    else
+    if (height==0)
     {
+      // set minimum
       height = 20;
     }