]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugfix for list labels that were not properly placed when the list-block is a child...
authorJeremias Maerki <jeremias@apache.org>
Fri, 4 Feb 2005 08:25:06 +0000 (08:25 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 4 Feb 2005 08:25:06 +0000 (08:25 +0000)
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

index 102e609205131fabd8f30ed3227d7c1ffc69dccb..a1301e283e88fccbcb00d210899afa1136b8e04c 100644 (file)
@@ -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");