diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-08-29 11:50:14 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-08-29 11:50:14 +0000 |
commit | 50eaa2dc17fe3f41bd07c3de20034203e21a9846 (patch) | |
tree | 82fbd78683544661769c37791f9b61cf40a5983f /src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java | |
parent | 2842b84e2f852d0ea9457fca1de73b98e191538d (diff) | |
download | xmlgraphics-fop-50eaa2dc17fe3f41bd07c3de20034203e21a9846.tar.gz xmlgraphics-fop-50eaa2dc17fe3f41bd07c3de20034203e21a9846.zip |
Set the background a little later, after the IPD is set. A block area grows as necessary so this doesn't currently fix the problem that the background traits are set before the BPD is known.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264114 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java index 45e2945fa..46f2f68e4 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java @@ -402,8 +402,6 @@ public class BlockLayoutManager extends BlockStackingLayoutManager { TraitSetter.setProducerID(curBlockArea, getBlockFO().getId()); TraitSetter.addBorders(curBlockArea, getBlockFO().getCommonBorderPaddingBackground()); - TraitSetter.addBackground(curBlockArea, - getBlockFO().getCommonBorderPaddingBackground()); TraitSetter.addMargins(curBlockArea, getBlockFO().getCommonBorderPaddingBackground(), getBlockFO().getCommonMarginBlock()); @@ -429,6 +427,8 @@ public class BlockLayoutManager extends BlockStackingLayoutManager { int contentIPD = referenceIPD - getIPIndents(); curBlockArea.setIPD(contentIPD/*parentwidth*/); + TraitSetter.addBackground(curBlockArea, + getBlockFO().getCommonBorderPaddingBackground()); setCurrentArea(curBlockArea); // ??? for generic operations } return curBlockArea; |