]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Take into account the inline-container's bpd in the alignment context
authorVincent Hennebert <vhennebert@apache.org>
Thu, 31 Oct 2013 20:06:34 +0000 (20:06 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Thu, 31 Oct 2013 20:06:34 +0000 (20:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_InlineContainer@1537612 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/inline/InlineContainerLayoutManager.java

index 85d21833bbf520ceb97202635308874ca5f22453..669b88838870337761bd6b0f4c222e8ecbd2803d 100644 (file)
@@ -247,8 +247,10 @@ public class InlineContainerLayoutManager extends AbstractLayoutManager implemen
         FontInfo fi = fobj.getFOEventHandler().getFontInfo();
         FontTriplet[] fontkeys = ic.getCommonFont().getFontState(fi);
         Font fs = fi.getFontInstance(fontkeys[0], ic.getCommonFont().fontSize.getValue(this));
-        return new AlignmentContext(fs, ic.getLineHeight().getOptimum(this).getLength().getValue(this), // TODO
-                context.getWritingMode());
+        return new AlignmentContext(contentAreaBPD,
+                ic.getAlignmentAdjust(), ic.getAlignmentBaseline(),
+                ic.getBaselineShift(), ic.getDominantBaseline(),
+                context.getAlignmentContext());
     }
 
     public boolean handleOverflow(int milliPoints) {