DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17085>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17085 Absolute Position of block-container wrong in some cases Summary: Absolute Position of block-container wrong in some cases Product: Fop Version: 0.20.5 Platform: PC OS/Version: Windows XP Status: NEW Severity: Minor Priority: Other Component: pdf renderer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] In some cases, the placement of an absolutely positioned block-container does not show correctly when in the generated PDF. The code below shows an example which has one of the 3 containers positioned wrongly (container #2). There are a number of ways to "fix" this: 1. Change the incorrect container's (#2) attribute to top="1px" 2. Add a background-color attribute to the container (#2) or the contained block 3. Add a solid border to the block (#2) 4. Rearrange the containers _in the code_, so that the offending container (#2) is first or last instead of in the middle. 5. Change the first container's (#1) attribute to top="1px" -----------Begin Code------------- <?xml version="1.0"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="MainPage" page-width="8.5in" page- height="1.5in" margin-top="0in" margin-bottom="0in" margin-left="0in" margin- right="0in"> <fo:region-body margin-top="0in" margin-bottom="0in" margin-left="0in" margin- right="0in"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="MainPage"> <fo:flow flow-name="xsl-region-body"> <fo:block-container width="150px" height="20px" left="400px" top="0px" position="absolute"> <fo:block font-size="10pt" line-height="13pt"> 1. Correct Position (400,0) </fo:block> </fo:block-container> <fo:block-container width="200px" height="20px" left="0px" top="0px" position="absolute" > <fo:block font-size="10pt" line-height="13pt"> 2. Incorrect position - should be at left (0,0) </fo:block> </fo:block-container> <fo:block-container width="150px" height="20px" left="0px" top="50px" position="absolute"> <fo:block font-size="10pt" line-height="13pt"> 3. Correct Position (0,100) </fo:block> </fo:block-container> </fo:flow> </fo:page-sequence> </fo:root> ------------End Code--------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]