aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-07-25 15:41:23 +0000
committerJeremias Maerki <jeremias@apache.org>2005-07-25 15:41:23 +0000
commit71e92910e627db28ed5bcff19d4593a7bd284575 (patch)
tree069b3c61b7a2f9d0148aab38a2e290f514a5dbe4 /src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java
parent3952bd4dfb46b8b28488d8c72481499efdd56586 (diff)
downloadxmlgraphics-fop-71e92910e627db28ed5bcff19d4593a7bd284575.tar.gz
xmlgraphics-fop-71e92910e627db28ed5bcff19d4593a7bd284575.zip
Bugzilla #35534
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
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java
index c86281c42..9179e71ce 100644
--- a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java
@@ -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