Author: vhennebert
Date: Thu Oct 31 20:06:34 2013
New Revision: 1537612

URL: http://svn.apache.org/r1537612
Log:
Take into account the inline-container's bpd in the alignment context

Modified:
    
xmlgraphics/fop/branches/Temp_InlineContainer/src/java/org/apache/fop/layoutmgr/inline/InlineContainerLayoutManager.java

Modified: 
xmlgraphics/fop/branches/Temp_InlineContainer/src/java/org/apache/fop/layoutmgr/inline/InlineContainerLayoutManager.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_InlineContainer/src/java/org/apache/fop/layoutmgr/inline/InlineContainerLayoutManager.java?rev=1537612&r1=1537611&r2=1537612&view=diff
==============================================================================
--- 
xmlgraphics/fop/branches/Temp_InlineContainer/src/java/org/apache/fop/layoutmgr/inline/InlineContainerLayoutManager.java
 (original)
+++ 
xmlgraphics/fop/branches/Temp_InlineContainer/src/java/org/apache/fop/layoutmgr/inline/InlineContainerLayoutManager.java
 Thu Oct 31 20:06:34 2013
@@ -247,8 +247,10 @@ public class InlineContainerLayoutManage
         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) {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to