From 7ce41696f38d92fb75cf6737674966e32351e00c Mon Sep 17 00:00:00 2001 From: Manuel Mall Date: Fri, 14 Oct 2005 13:20:53 +0000 Subject: Inline block parents were not correctly positioned when border/padding got involved - matched their positioning logic with the usual inlines git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@321108 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/render/AbstractRenderer.java | 1 + src/java/org/apache/fop/render/xml/XMLRenderer.java | 1 + 2 files changed, 2 insertions(+) (limited to 'src/java/org/apache/fop/render') diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java index 16c8f75ae..aceac1a87 100644 --- a/src/java/org/apache/fop/render/AbstractRenderer.java +++ b/src/java/org/apache/fop/render/AbstractRenderer.java @@ -662,6 +662,7 @@ public abstract class AbstractRenderer currentIPPosition += ibp.getBorderAndPaddingWidthStart(); // For inline content the BP position is updated by the enclosing line area int saveBP = currentBPPosition; + currentBPPosition += ibp.getOffset(); renderBlock(ibp.getChildArea()); currentBPPosition = saveBP; } diff --git a/src/java/org/apache/fop/render/xml/XMLRenderer.java b/src/java/org/apache/fop/render/xml/XMLRenderer.java index cedbb404f..71d47df40 100644 --- a/src/java/org/apache/fop/render/xml/XMLRenderer.java +++ b/src/java/org/apache/fop/render/xml/XMLRenderer.java @@ -638,6 +638,7 @@ public class XMLRenderer extends PrintRenderer { atts.clear(); addAreaAttributes(ibp); addTraitAttributes(ibp); + addAttribute("offset", ibp.getOffset()); startElement("inlineblockparent", atts); super.renderInlineBlockParent(ibp); endElement("inlineblockparent"); -- cgit v1.2.3