From 06ad501615a569ff54aef4c553e20be34bb56f2e Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 4 Feb 2005 08:25:06 +0000 Subject: [PATCH] Bugfix for list labels that were not properly placed when the list-block is a child of a flow and there are margins on the page-master. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198373 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java b/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java index 102e60920..a1301e283 100644 --- a/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java @@ -18,6 +18,7 @@ package org.apache.fop.layoutmgr; +import org.apache.fop.datatypes.PercentBase; import org.apache.fop.fo.flow.Marker; import org.apache.fop.fo.pagination.Flow; import org.apache.fop.area.Area; @@ -69,6 +70,9 @@ public class FlowLayoutManager extends BlockStackingLayoutManager { LayoutManager curLM; MinOptMax stackSize = new MinOptMax(); + fobj.setLayoutDimension(PercentBase.BLOCK_IPD, context.getRefIPD()); + fobj.setLayoutDimension(PercentBase.BLOCK_BPD, context.getStackLimit().opt); + while ((curLM = getChildLM()) != null) { if (curLM.generatesInlineAreas()) { log.error("inline area not allowed under flow - ignoring"); -- 2.39.5