aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/flow/InstreamForeignObject.java
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-04-02 11:50:58 +0000
committerKeiron Liddle <keiron@apache.org>2002-04-02 11:50:58 +0000
commitc345506f116ea1d241eb616ba8d173f3d5caaca4 (patch)
tree2deca2ac7b2f94dab18716b24b1d24814baaf92a /src/org/apache/fop/fo/flow/InstreamForeignObject.java
parent90410f7a18c9154a5519e335579b2e3af29e0a76 (diff)
downloadxmlgraphics-fop-c345506f116ea1d241eb616ba8d173f3d5caaca4.tar.gz
xmlgraphics-fop-c345506f116ea1d241eb616ba8d173f3d5caaca4.zip
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
Diffstat (limited to 'src/org/apache/fop/fo/flow/InstreamForeignObject.java')
-rw-r--r--src/org/apache/fop/fo/flow/InstreamForeignObject.java4
1 files changed, 4 insertions, 0 deletions
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;
}