jeremias 2005/02/08 09:41:23
Modified: src/java/org/apache/fop/layoutmgr/table Cell.java
Log:
Forgot to take padding into account.
Revision Changes Path
1.18 +4 -4 xml-fop/src/java/org/apache/fop/layoutmgr/table/Cell.java
Index: Cell.java
===================================================================
RCS file:
/home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/table/Cell.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- Cell.java 8 Feb 2005 16:25:12 -0000 1.17
+++ Cell.java 8 Feb 2005 17:41:23 -0000 1.18
@@ -290,11 +290,11 @@
curBlockArea = new Block();
curBlockArea.addTrait(Trait.IS_REFERENCE_AREA, Boolean.TRUE);
curBlockArea.setPositioning(Block.ABSOLUTE);
+ int indent = 0;
+ indent +=
fobj.getCommonBorderPaddingBackground().getBorderStartWidth(false);
+ indent +=
fobj.getCommonBorderPaddingBackground().getPaddingStart(false);
// set position
- int x = xoffset + inRowIPDOffset;
- //mimic start-indent
- x +=
fobj.getCommonBorderPaddingBackground().getBorderStartWidth(false);
- curBlockArea.setXOffset(x);
+ curBlockArea.setXOffset(xoffset + inRowIPDOffset + indent);
curBlockArea.setYOffset(yoffset);
curBlockArea.setIPD(cellIPD);
//curBlockArea.setHeight();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]