jeremias    2005/01/17 22:58:03

  Modified:    src/java/org/apache/fop/render/xml XMLRenderer.java
  Log:
  Show top|left-position traits only for abs positioned BCs.
  
  Revision  Changes    Path
  1.36      +4 -2      
xml-fop/src/java/org/apache/fop/render/xml/XMLRenderer.java
  
  Index: XMLRenderer.java
  ===================================================================
  RCS file: 
/home/cvs/xml-fop/src/java/org/apache/fop/render/xml/XMLRenderer.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- XMLRenderer.java  17 Jan 2005 10:30:55 -0000      1.35
  +++ XMLRenderer.java  18 Jan 2005 06:58:03 -0000      1.36
  @@ -458,11 +458,13 @@
               BlockViewport bvp = (BlockViewport)block;
               if (bvp.getPositioning() == Block.ABSOLUTE) {
                   addAttribute("positioning", "absolute");
  +                addAttribute("left-position", bvp.getXOffset());
  +                addAttribute("top-position", bvp.getYOffset());
               } else if (bvp.getPositioning() == Block.FIXED) {
                   addAttribute("positioning", "fixed");
  +                addAttribute("left-position", bvp.getXOffset());
  +                addAttribute("top-position", bvp.getYOffset());
               }
  -            addAttribute("left-position", bvp.getXOffset());
  -            addAttribute("top-position", bvp.getYOffset());
           } else {
               if (block.getPositioning() == Block.RELATIVE) {
                   addAttribute("positioning", "relative");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to