assertEquals(od.getBoxHeight(), boxHeight);
// move viewport to hidden columns
- moveViewport(102, 0);
+ // viewport can't actually extend into hidden cols,
+ // so move to the far right edge of the viewport
+ moveViewport(firstHidden - viewWidth, 0);
assertEquals(od.getBoxX(),
- Math.round((float) 102 * od.getWidth() / alwidth));
+ Math.round((float) (firstHidden - viewWidth)
+ * od.getWidth() / alwidth));
assertEquals(od.getBoxY(), 0);
- assertEquals(od.getBoxWidth(), boxWidth
- + Math.round((float) (lastHidden - firstHidden + 1)
- * od.getWidth() / alwidth));
+ assertEquals(od.getBoxWidth(), boxWidth);
assertEquals(od.getBoxHeight(), boxHeight);
}