From: Karen Lease Date: Wed, 11 Apr 2001 21:45:17 +0000 (+0000) Subject: Correct bug with AreaContainer positioning X-Git-Tag: PRE_CODEFORMATTING~171 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c6f5453474f1f1547c33019bb9fe6bedcd26f675;p=xmlgraphics-fop.git Correct bug with AreaContainer positioning git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194206 13f79535-47bb-0310-9956-ffa450edef68 --- 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) {