(JAL-967) ensure annotation panel is rendered with current scroll offset
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 27 Oct 2011 10:41:42 +0000 (11:41 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 27 Oct 2011 10:41:42 +0000 (11:41 +0100)
src/jalview/appletgui/AnnotationPanel.java

index b61f1cb..f068a3c 100755 (executable)
@@ -630,7 +630,9 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI, Adjustmen
 
       return;
     }
+    g.translate(0, -scrollOffset);
     renderer.drawComponent(this, av, g, activeRow, startRes, endRes);
+    g.translate(0, +scrollOffset);
   }
   
   int scrollOffset = 0;