protected void computeInlineBlock(final RenderBox box,
final long position,
final long itemElementWidth)
{
final StaticBoxLayoutProperties blp = box.getStaticBoxLayoutProperties();
box.setCachedX(position + blp.getMarginLeft());
final long width = itemElementWidth - blp.getMarginLeft() - blp.getMarginRight();
if (width == 0)
{
//ModelPrinter.printParents(box);
throw new IllegalStateException("A box without any width? " +
Integer.toHexString(System.identityHashCode(box)) + ' ' + box.getClass());
}
box.setCachedWidth(width);
final BoxDefinition bdef = box.getBoxDefinition();
final long leftInsets = bdef.getPaddingLeft() + blp.getBorderLeft();
final long rightInsets = bdef.getPaddingRight() + blp.getBorderRight();
box.setContentAreaX1(box.getCachedX() + leftInsets);
box.setContentAreaX2(box.getCachedX() + box.getCachedWidth() - rightInsets);
// final InfiniteMinorAxisLayoutStep layoutStep = new InfiniteMinorAxisLayoutStep(metaData);
// layoutStep.continueComputation(getPageGrid(), box);