From de69fbf90655974ac954c4acb1dcd74fa581ef4c Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 29 Jun 2011 17:56:57 +0100 Subject: [PATCH] repaint image buffer height change (JAL-564) and ensure annotation panel height drag events do not result in annotation row reordering (JAL-769) --- src/jalview/appletgui/AnnotationLabels.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 1.7.10.2