From 52b192f408c5dba675f072ceaa49dad160bd0eab Mon Sep 17 00:00:00 2001 From: Karen Lease Date: Wed, 11 Apr 2001 21:44:35 +0000 Subject: [PATCH] Remove offset of X and Y position by border and padding git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194205 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/layout/AreaContainer.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/org/apache/fop/layout/AreaContainer.java b/src/org/apache/fop/layout/AreaContainer.java index 79822f7d2..3f0dede76 100644 --- a/src/org/apache/fop/layout/AreaContainer.java +++ b/src/org/apache/fop/layout/AreaContainer.java @@ -71,6 +71,7 @@ public class AreaContainer extends Area { this.xPosition = xPosition; this.yPosition = yPosition; this.position = position; + //setIsReferenceArea(true); // Should always be true! } public void render(Renderer renderer) { @@ -82,7 +83,8 @@ public class AreaContainer extends Area { } public int getXPosition() { - return xPosition + getPaddingLeft() + getBorderLeftWidth(); + //return xPosition + getPaddingLeft() + getBorderLeftWidth(); + return xPosition ; } public void setXPosition(int value) { @@ -90,7 +92,8 @@ public class AreaContainer extends Area { } public int getYPosition() { - return yPosition + getPaddingTop() + getBorderTopWidth(); + //return yPosition + getPaddingTop() + getBorderTopWidth(); + return yPosition ; } public int getCurrentYPosition() { @@ -100,4 +103,8 @@ public class AreaContainer extends Area { public void setYPosition(int value) { yPosition = value; } + + public void shiftYPosition(int value) { + yPosition += value; + } } -- 2.39.5