]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Correct border positions on absolutely positioned AreaContainers (fo:block-container)
authorKaren Lease <klease@apache.org>
Wed, 16 May 2001 20:50:53 +0000 (20:50 +0000)
committerKaren Lease <klease@apache.org>
Wed, 16 May 2001 20:50:53 +0000 (20:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194249 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/render/PrintRenderer.java

index 128b2765a387897f6c0671c6a82423067ef7ddeb..efc9b8d56244e384f348855808bc9240f4539fac 100644 (file)
@@ -165,10 +165,8 @@ public abstract class PrintRenderer implements Renderer
         int saveX = this.currentAreaContainerXPosition;
 
         if (area.getPosition() == Position.ABSOLUTE) {
-            // Y position is computed assuming positive Y axis, adjust for negative postscript one
-            this.currentYPosition =
-              area.getYPosition() - 2 * area.getPaddingTop() -
-              2 * area.getBorderTopWidth();
+           // XPosition and YPosition give the content rectangle position
+            this.currentYPosition = area.getYPosition() ;
             this.currentAreaContainerXPosition = area.getXPosition();
         } else if (area.getPosition() == Position.RELATIVE) {
             this.currentYPosition -= area.getYPosition();