]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Setting layout dimensions in the FlowLM
authorLuca Furini <lfurini@apache.org>
Tue, 12 Apr 2005 17:01:30 +0000 (17:01 +0000)
committerLuca Furini <lfurini@apache.org>
Tue, 12 Apr 2005 17:01:30 +0000 (17:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_KnuthStylePageBreaking@198578 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java

index db5ce5a2afbbf28093eba1e76abc710bc44341e5..6d2228931b5d163476297cb478eb554508a3b0fe 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;
@@ -172,8 +173,11 @@ public class FlowLayoutManager extends BlockStackingLayoutManager
 
     
 //TODO Reintroduce emergency counter (generate error to avoid endless loop)
-//TODO Reintroduce layout dimensions
     public LinkedList getNextKnuthElements(LayoutContext context, int alignment) {
+        // set layout dimensions
+        fobj.setLayoutDimension(PercentBase.BLOCK_IPD, context.getRefIPD());
+        fobj.setLayoutDimension(PercentBase.BLOCK_BPD, context.getStackLimit().opt);
+
         // currently active LM
         BlockLevelLayoutManager curLM;
         BlockLevelLayoutManager prevLM = null;