patch for JAL-820 and JAL-821
authorjprocter <Jim Procter>
Thu, 21 Apr 2011 14:51:08 +0000 (14:51 +0000)
committerjprocter <Jim Procter>
Thu, 21 Apr 2011 14:51:08 +0000 (14:51 +0000)
src/jalview/gui/AnnotationLabels.java

index 740a13a..6626016 100755 (executable)
@@ -197,11 +197,6 @@ public class AnnotationLabels extends JPanel implements MouseListener,
     else if (evt.getActionCommand().equals(HIDE))
     {
       aa[selectedRow].visible = false;
-
-      if (aa[selectedRow].label.equals("Quality"))
-      {
-        ap.av.quality = null;
-      }
     }
     else if (evt.getActionCommand().equals(DELETE))
     {
@@ -245,9 +240,11 @@ public class AnnotationLabels extends JPanel implements MouseListener,
       aa[selectedRow].scaleColLabel = !aa[selectedRow].scaleColLabel;
     }
 
-    ap.annotationPanel.adjustPanelHeight();
-    ap.annotationScroller.validate();
-    ap.paintAlignment(true);
+    ap.validateAnnotationDimensions(false);
+    ap.addNotify();
+    ap.repaint();
+    //validate();
+    //ap.paintAlignment(true);
   }
 
   /**