JAL-3253-applet JAL-4440 overview 1 pixel off in hidden row view
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 24 Sep 2019 11:43:01 +0000 (07:43 -0400)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 24 Sep 2019 11:43:01 +0000 (07:43 -0400)
src/jalview/renderer/OverviewRenderer.java

index 0768681..28221e4 100644 (file)
@@ -631,7 +631,9 @@ public class OverviewRenderer
         // get details of this alignment row
         if (rows.isHidden(alignmentRow))
         {
-          g2d.fillRect(0, pixelRow, w, endRow - 1 - pixelRow);
+          // BH 2019.09.24 fixes JAL-3440 Java+JavaScript off by one row in
+          // height
+          g2d.fillRect(0, pixelRow, w, endRow - pixelRow);
         }
         pixelRow = endRow;
       }