From c6f5453474f1f1547c33019bb9fe6bedcd26f675 Mon Sep 17 00:00:00 2001 From: Karen Lease Date: Wed, 11 Apr 2001 21:45:17 +0000 Subject: [PATCH] Correct bug with AreaContainer positioning git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194206 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/render/PrintRenderer.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/org/apache/fop/render/PrintRenderer.java b/src/org/apache/fop/render/PrintRenderer.java index 11e3f2cda..128b2765a 100644 --- a/src/org/apache/fop/render/PrintRenderer.java +++ b/src/org/apache/fop/render/PrintRenderer.java @@ -188,11 +188,20 @@ public abstract class PrintRenderer implements Renderer Box b = (Box) e.nextElement(); b.render(this); } + // Restore previous origin + this.currentYPosition = saveY; + this.currentAreaContainerXPosition = saveX; + if (area.getPosition() == Position.STATIC) { + this.currentYPosition -= area.getHeight(); + } + + /**** if (area.getPosition() != Position.STATIC) { this.currentYPosition = saveY; this.currentAreaContainerXPosition = saveX; } else this.currentYPosition -= area.getHeight(); + *****/ } public void renderBodyAreaContainer(BodyAreaContainer area) { -- 2.39.5