]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Correct bug with AreaContainer positioning
authorKaren Lease <klease@apache.org>
Wed, 11 Apr 2001 21:45:17 +0000 (21:45 +0000)
committerKaren Lease <klease@apache.org>
Wed, 11 Apr 2001 21:45:17 +0000 (21:45 +0000)
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

index 11e3f2cda7e6d50c351e63eb340ea3679038f161..128b2765a387897f6c0671c6a82423067ef7ddeb 100644 (file)
@@ -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) {