From f0099e5686c2d711522e7fee57aba9f6f8224616 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Sun, 21 Aug 2005 14:09:25 +0000 Subject: [PATCH] Show and fix a bug where bottom/right positioning of block-containers didn't work properly when the block-container is nested in a block. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234203 13f79535-47bb-0310-9956-ffa450edef68 --- .../layoutmgr/BlockStackingLayoutManager.java | 1 + .../testcases/block-container-abs1.xml | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java index d1f656b58..feec2f783 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java @@ -302,6 +302,7 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager // curLM is a ? //childLC.setStackLimit(MinOptMax.subtract(context // .getStackLimit(), stackSize)); + childLC.setStackLimit(context.getStackLimit()); childLC.setRefIPD(referenceIPD); } diff --git a/test/layoutengine/testcases/block-container-abs1.xml b/test/layoutengine/testcases/block-container-abs1.xml index 37c220252..10e34f67c 100644 --- a/test/layoutengine/testcases/block-container-abs1.xml +++ b/test/layoutengine/testcases/block-container-abs1.xml @@ -43,6 +43,9 @@ This is some background-text. This is some background-text. This is some background-text. + + absolutely positioned right/bottom (inside a block) + This is some background-text. This is some background-text. This is some background-text. @@ -66,7 +69,7 @@ - + @@ -77,5 +80,16 @@ + + + + + + + + + + + -- 2.39.5