repaint image buffer resize when panel height changes (JAL-564)
authorjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 29 Jun 2011 16:54:37 +0000 (17:54 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 29 Jun 2011 16:54:37 +0000 (17:54 +0100)
src/jalview/appletgui/AnnotationPanel.java

index fedf796..e959c5f 100755 (executable)
@@ -532,7 +532,7 @@ public class AnnotationPanel extends Panel implements AdjustmentListener,
     {
       return;
     }
-    if (image == null || imgWidth != image.getWidth(this))
+    if (image == null || imgWidth != image.getWidth(this) || d.height != image.getHeight(this))
     {
       image = createImage(imgWidth, d.height);
       gg = image.getGraphics();