From c345506f116ea1d241eb616ba8d173f3d5caaca4 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Tue, 2 Apr 2002 11:50:58 +0000 Subject: basic vertical alignment and height for lines handles alignment.fo git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194730 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/InstreamForeignObject.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/org/apache/fop/fo/flow/InstreamForeignObject.java') diff --git a/src/org/apache/fop/fo/flow/InstreamForeignObject.java b/src/org/apache/fop/fo/flow/InstreamForeignObject.java index 915e97bc3..9dc8682b6 100644 --- a/src/org/apache/fop/fo/flow/InstreamForeignObject.java +++ b/src/org/apache/fop/fo/flow/InstreamForeignObject.java @@ -24,6 +24,7 @@ import org.apache.fop.layout.RelativePositionProps; import org.apache.fop.apps.FOPException; import org.apache.fop.layoutmgr.LayoutManager; import org.apache.fop.layoutmgr.LeafNodeLayoutManager; +import org.apache.fop.layoutmgr.LayoutInfo; import org.w3c.dom.Document; @@ -136,6 +137,9 @@ public class InstreamForeignObject extends FObj { areaCurrent.setWidth((int)size.getX() * 1000); areaCurrent.setHeight((int)size.getY() * 1000); areaCurrent.setOffset(0); + areaCurrent.info = new LayoutInfo(); + areaCurrent.info.alignment = properties.get("vertical-align").getEnum(); + areaCurrent.info.lead = areaCurrent.getHeight(); return areaCurrent; } -- cgit v1.2.3