From: jprocter Date: Wed, 24 Jun 2009 08:31:44 +0000 (+0000) Subject: ensure annotation row height is honoured for new VAMSAS annotation X-Git-Tag: Release_2_5~237 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2564b4cd5f71405b3fa9155f15dedfc666448348;p=jalview.git ensure annotation row height is honoured for new VAMSAS annotation --- diff --git a/src/jalview/io/VamsasAppDatastore.java b/src/jalview/io/VamsasAppDatastore.java index e21a9ed..a9219a6 100644 --- a/src/jalview/io/VamsasAppDatastore.java +++ b/src/jalview/io/VamsasAppDatastore.java @@ -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