You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/08/29 13:50:17 UTC
svn commit: r264114 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java
Author: jeremias
Date: Mon Aug 29 04:50:14 2005
New Revision: 264114
URL: http://svn.apache.org/viewcvs?rev=264114&view=rev
Log:
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.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java?rev=264114&r1=264113&r2=264114&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java Mon Aug 29 04:50:14 2005
@@ -402,8 +402,6 @@
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 @@
int contentIPD = referenceIPD - getIPIndents();
curBlockArea.setIPD(contentIPD/*parentwidth*/);
+ TraitSetter.addBackground(curBlockArea,
+ getBlockFO().getCommonBorderPaddingBackground());
setCurrentArea(curBlockArea); // ??? for generic operations
}
return curBlockArea;
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org