aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
diff options
context:
space:
mode:
authorLuca Furini <lfurini@apache.org>2008-07-07 13:52:36 +0000
committerLuca Furini <lfurini@apache.org>2008-07-07 13:52:36 +0000
commitb8afaae2940a6020e8593a4e83ee9036b9f97666 (patch)
tree2d85b1de8699b3700af229913ef762c3563912f3 /src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
parent61ce6bf89af376daa19d905d5c3dbf69d7e82713 (diff)
downloadxmlgraphics-fop-b8afaae2940a6020e8593a4e83ee9036b9f97666.tar.gz
xmlgraphics-fop-b8afaae2940a6020e8593a4e83ee9036b9f97666.zip
Fixing absolute positioning of block-containers: bottom and right distances were not taken into account
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674489 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
index 732cb1ae7..022ba1d90 100644
--- a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
@@ -694,9 +694,17 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager
int y = 0;
if (abProps.left.getEnum() != EN_AUTO) {
x = abProps.left.getValue(this);
+ } else if (abProps.right.getEnum() != EN_AUTO
+ && width.getEnum() != EN_AUTO) {
+ x = getReferenceAreaIPD()
+ - abProps.right.getValue(this) - width.getValue(this);
}
if (abProps.top.getEnum() != EN_AUTO) {
y = abProps.top.getValue(this);
+ } else if (abProps.bottom.getEnum() != EN_AUTO
+ && height.getEnum() != EN_AUTO) {
+ y = getReferenceAreaBPD()
+ - abProps.bottom.getValue(this) - height.getValue(this);
}
return new Point(x, y);
}
@@ -1085,3 +1093,4 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager
}
+