xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guest User (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FOP-2247) Vertical table border differs width, when horizontal border is omitted
Date Wed, 19 Jun 2013 04:35:20 GMT

    [ https://issues.apache.org/jira/browse/FOP-2247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13687599#comment-13687599
] 

Guest User commented on FOP-2247:
---------------------------------

I've read the mentioned thread from November 2012 and I see that this is a complex problem
and there is no need to discuss this again. One of the hints to deal with it, is to use nested
tables. However, in most cases nested tables won't help. One of the major reasons is, that
tables do not support height="100%". Will this be possible in coming up versions?
                
> Vertical table border differs width, when horizontal border is omitted
> ----------------------------------------------------------------------
>
>                 Key: FOP-2247
>                 URL: https://issues.apache.org/jira/browse/FOP-2247
>             Project: Fop
>          Issue Type: Bug
>          Components: pdf
>    Affects Versions: 1.1
>         Environment: Windows 7, JRE1.6
>            Reporter: Guest User
>            Priority: Minor
>
> Following description applies to PDF view.
> When using a table grid to place contents on a page, the border width of the cell borders
differ in their width. This happens when both, top and bottom border, are omitted. Here is
an example, which nicely demonstrates the effect. See the comment in the code to know, which
borders will be painted wrong:
> <?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="content"
>         page-width="210mm" page-height="297mm" margin="1cm">
>       <fo:region-body/>
>     </fo:simple-page-master>
>   </fo:layout-master-set>
>   <fo:page-sequence master-reference="content">
>     <fo:flow flow-name="xsl-region-body">
> 	  <fo:table table-layout="auto">
> 	    <fo:table-header>
> 			<fo:table-row>
> 				<fo:table-cell border="medium solid black" border-bottom="none"><fo:block
white-space-treatment="preserve"> </fo:block></fo:table-cell>
> 				<fo:table-cell border="medium solid black" border-bottom="none"><fo:block
white-space-treatment="preserve"> </fo:block></fo:table-cell>
> 				<fo:table-cell border="medium solid black" border-bottom="none"><fo:block
white-space-treatment="preserve"> </fo:block></fo:table-cell>
> 			</fo:table-row>
> 			<fo:table-row>
> 				<fo:table-cell border="medium solid black" border-top="none" border-bottom="none"><fo:block
white-space-treatment="preserve"> </fo:block></fo:table-cell>
> 				<!-- vertical borders of the following cell appear thicker then the rest: -->
> 				<fo:table-cell border="medium solid black" border-top="none" border-bottom="none"><fo:block
white-space-treatment="preserve"> </fo:block></fo:table-cell>
> 				<fo:table-cell border="medium solid black" border-top="none" border-bottom="none"><fo:block
white-space-treatment="preserve"> </fo:block></fo:table-cell>
> 			</fo:table-row>
> 			<fo:table-row>
> 				<fo:table-cell border="medium solid black" border-top="none"><fo:block white-space-treatment="preserve">
</fo:block></fo:table-cell>
> 				<fo:table-cell border="medium solid black" border-top="none"><fo:block white-space-treatment="preserve">
</fo:block></fo:table-cell>
> 				<fo:table-cell border="medium solid black" border-top="none"><fo:block white-space-treatment="preserve">
</fo:block></fo:table-cell>
> 			</fo:table-row>
> 		</fo:table-header>
> 		<fo:table-body>
> 			<fo:table-row>
> 				<fo:table-cell><fo:block></fo:block></fo:table-cell>
> 				<fo:table-cell><fo:block></fo:block></fo:table-cell>
> 				<fo:table-cell><fo:block></fo:block></fo:table-cell>
> 			</fo:table-row>
> 		</fo:table-body>
>       </fo:table>
>     </fo:flow>
>   </fo:page-sequence>
> </fo:root>
> This can be seen on screen and on paper, as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message