XRLog.layout(Level.FINEST, "after layout: " + _rootBox);
// update scrollbars
Dimension intrinsic_size = rootLayer.getPaintingDimension(_layout_context);
if (_layout_context.isPrint()) {
rootLayer.trimEmptyPages(_layout_context, intrinsic_size.height);
if (rootLayer.getLastPage() != null) {
rootLayer.assignPagePaintingPositions(_layout_context, Layer.PAGED_MODE_SCREEN,
PAGE_PAINTING_CLEARANCE);
_drawnSize = new Point(rootLayer.getMaxPageWidth(_layout_context,
PAGE_PAINTING_CLEARANCE), rootLayer.getLastPage().getPaintingBottom()