aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2001-05-16 20:50:53 +0000
committerKaren Lease <klease@apache.org>2001-05-16 20:50:53 +0000
commitf89f05c27124377ec9497b30d4d75874a2bec67b (patch)
treedeb6262b9fb5693dd7784171de9e681917bafb35 /src/org/apache/fop
parent92eae99485ec3c3e6892f47847464b4caf6906d3 (diff)
downloadxmlgraphics-fop-f89f05c27124377ec9497b30d4d75874a2bec67b.tar.gz
xmlgraphics-fop-f89f05c27124377ec9497b30d4d75874a2bec67b.zip
Correct border positions on absolutely positioned AreaContainers (fo:block-container)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194249 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop')
-rw-r--r--src/org/apache/fop/render/PrintRenderer.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/org/apache/fop/render/PrintRenderer.java b/src/org/apache/fop/render/PrintRenderer.java
index 128b2765a..efc9b8d56 100644
--- a/src/org/apache/fop/render/PrintRenderer.java
+++ b/src/org/apache/fop/render/PrintRenderer.java
@@ -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();