ensure annotation row height is honoured for new VAMSAS annotation
authorjprocter <Jim Procter>
Wed, 24 Jun 2009 08:31:44 +0000 (08:31 +0000)
committerjprocter <Jim Procter>
Wed, 24 Jun 2009 08:31:44 +0000 (08:31 +0000)
src/jalview/io/VamsasAppDatastore.java

index e21a9ed..a9219a6 100644 (file)
@@ -1723,6 +1723,7 @@ public class VamsasAppDatastore
                     // positions.
                     alseq.addAlignmentAnnotation(asa);
                     bindjvvobj(asa, vasannot[a]);
+                    refreshal = true;
                     newasAnnots.add(asa);
                   }
                   else
@@ -1811,8 +1812,10 @@ public class VamsasAppDatastore
                 else
                 {
                   jan = getjAlignmentAnnotation(jal, an[j]);
+                  // TODO: ensure we add the alignment annotation before the automatic annotation rows
                   jal.addAnnotation(jan);
                   bindjvvobj(jan, an[j]);
+                  refreshal = true;
                 }
               }
             }
@@ -1862,6 +1865,7 @@ public class VamsasAppDatastore
               if (refreshal)
               {
                 av.alignmentChanged(alignFrame.alignPanel);
+                alignFrame.alignPanel.adjustAnnotationHeight();
               }
             }
             // LOAD TREES