- int width = getViewportWidth();
- updateStartEndRes(vis_x, vis_x + width - 1);
-
- int startseq = vis_y;
- int height = getViewportHeight();
- if (startseq + height - 1 > getVisibleAlignmentHeight() - 1)
- {
- startseq = getVisibleAlignmentHeight() - height;
- }
+ // set the viewport x location to contain vis_x
+ int width = getViewportWidth();
+ updateStartEndRes(visX, visX + width - 1);
+
+ // set the viewport y location to contain vis_y
+ int startseq = visY;
+ int height = getViewportHeight();
+ if (startseq + height - 1 > getVisibleAlignmentHeight() - 1)
+ {
+ startseq = getVisibleAlignmentHeight() - height;
+ }