From: jprocter Date: Wed, 29 Jun 2011 16:56:57 +0000 (+0100) Subject: repaint image buffer height change (JAL-564) and ensure annotation panel X-Git-Tag: Release_2_7~167 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=de69fbf90655974ac954c4acb1dcd74fa581ef4c;p=jalview.git repaint image buffer height change (JAL-564) and ensure annotation panel height drag events do not result in annotation row reordering (JAL-769) --- diff --git a/src/jalview/appletgui/AnnotationLabels.java b/src/jalview/appletgui/AnnotationLabels.java index 64f5d0b..1a6400d 100755 --- a/src/jalview/appletgui/AnnotationLabels.java +++ b/src/jalview/appletgui/AnnotationLabels.java @@ -330,7 +330,7 @@ public class AnnotationLabels extends Panel implements ActionListener, public void mouseReleased(MouseEvent evt) { - if (!dragCancelled) + if (!resizePanel && !dragCancelled) { int start = selectedRow; @@ -647,7 +647,8 @@ public class AnnotationLabels extends Panel implements ActionListener, public void paint(Graphics g) { int w = getSize().width; - if (image == null || w != image.getWidth(this)) + int h = getSize().height; + if (image == null || w != image.getWidth(this) || h!=image.getHeight(this) ) { image = createImage(w, ap.annotationPanel.getSize().height); }