]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla #35534
authorJeremias Maerki <jeremias@apache.org>
Mon, 25 Jul 2005 15:41:23 +0000 (15:41 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 25 Jul 2005 15:41:23 +0000 (15:41 +0000)
space-* production for list-item and list-block.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225135 13f79535-47bb-0310-9956-ffa450edef68

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

index c86281c4226253e3f1b07ae668ec4777222f1579..9179e71ceb9d45124cde56eb308d8242f0418b58 100644 (file)
@@ -883,6 +883,12 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager
         } else if (fobj instanceof org.apache.fop.fo.flow.BlockContainer) {
             spaceBefore = ((org.apache.fop.fo.flow.BlockContainer)fobj)
                 .getCommonMarginBlock().spaceBefore;
+        } else if (fobj instanceof org.apache.fop.fo.flow.ListBlock) {
+            spaceBefore = ((org.apache.fop.fo.flow.ListBlock)fobj)
+                .getCommonMarginBlock().spaceBefore;
+        } else if (fobj instanceof org.apache.fop.fo.flow.ListItem) {
+            spaceBefore = ((org.apache.fop.fo.flow.ListItem)fobj)
+                .getCommonMarginBlock().spaceBefore;
         }
         // append elements representing space-before
         if (bpUnit > 0
@@ -932,6 +938,12 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager
         } else if (fobj instanceof org.apache.fop.fo.flow.BlockContainer) {
             spaceAfter = ((org.apache.fop.fo.flow.BlockContainer)fobj)
                 .getCommonMarginBlock().spaceAfter;
+        } else if (fobj instanceof org.apache.fop.fo.flow.ListBlock) {
+            spaceAfter = ((org.apache.fop.fo.flow.ListBlock)fobj)
+                .getCommonMarginBlock().spaceAfter;
+        } else if (fobj instanceof org.apache.fop.fo.flow.ListItem) {
+            spaceAfter = ((org.apache.fop.fo.flow.ListItem)fobj)
+                .getCommonMarginBlock().spaceAfter;
         }
         // append elements representing space-after
         if (bpUnit > 0