+ // BH there are only 61 residues, but this calculation gives 65
+ // from SeqPanel return for findColumn:
+
+ // /*
+ // * make sure we calculate relative to visible alignment,
+ // * rather than right-hand gutter
+ // */
+ // x = Math.min(x, seqCanvas.getX() + seqCanvas.getWidth());
+ // res = (x / charWidth) + startRes;
+ // res = Math.min(res, av.getRanges().getEndRes());
+
+ int expected = w / charWidth;
+ expected = Math.min(
+ alignFrame.getViewport().getRanges().getEndRes(),
+ expected);