From: jprocter Date: Wed, 29 Jun 2011 16:54:37 +0000 (+0100) Subject: repaint image buffer resize when panel height changes (JAL-564) X-Git-Tag: Release_2_7~168 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=97e6cff14711046ec8bb2f6900fc6d8f315259ae;p=jalview.git repaint image buffer resize when panel height changes (JAL-564) --- diff --git a/src/jalview/appletgui/AnnotationPanel.java b/src/jalview/appletgui/AnnotationPanel.java index fedf796..e959c5f 100755 --- a/src/jalview/appletgui/AnnotationPanel.java +++ b/src/jalview/appletgui/AnnotationPanel.java @@ -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();