if (box == continuedElement)
{
return;
}
final ComputedLayoutProperties blp = box.getComputedLayoutProperties();
final long x = computeX(box) + blp.getMarginLeft();
box.setX(x);
// next, compute the width ...
long leftPadding = blp.getBorderLeft();
leftPadding += blp.getPaddingLeft();
box.setContentAreaX1(x + leftPadding);
final RenderLength computedWidth =
box.getComputedLayoutProperties().getComputedWidth();
if (computedWidth == RenderLength.AUTO)
{
final RenderBox parent = box.getParent();
if (parent instanceof BlockRenderBox)
{
long rightPadding = blp.getMarginRight();
rightPadding += blp.getBorderRight();
rightPadding += blp.getPaddingRight();
BlockRenderBox blockParent = (BlockRenderBox) parent;
box.setContentAreaX2(blockParent.getContentAreaX2() - rightPadding);
}
else