You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2011/03/09 14:24:28 UTC

DO NOT REPLY [Bug 50901] New: Percental table column width not calculated from table

https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

           Summary: Percental table column width not calculated from table
           Product: Fop
           Version: 1.0
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: rtf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: carsten.pfeiffer@gebit.de


Created an attachment (id=26750)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26750)
Example fo file, a table with 3 columns

The width of table columns is not correctly calculated for RTF output. A
percental width should be calculated from the enclosing table's width.

org.apache.fop.layoutmgr.table.TableLayoutManager actually does this for PDF
output (see getBaseLength() implementation), but
org.apache.fop.render.rtf.rtflib.tools.PercentContext doesn't.

The result is that the last column gets the entire space.

I'll attach a small example demonstrating the problem as well as a patch that
fixes that problem for me.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50901] [PATCH] Percental table column width not calculated from table

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50901] Percental table column width not calculated from table

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

--- Comment #4 from carsten.pfeiffer@gebit.de 2011-03-09 08:27:51 EST ---
Created an attachment (id=26754)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26754)
For comparison, the PDF output (unaffected by the patch)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50901] [PATCH] Percental table column width not calculated from table

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

--- Comment #5 from carsten.pfeiffer@gebit.de 2011-10-18 09:52:15 UTC ---
ping

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50901] [PATCH] Percental table column width not calculated from table

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

Chris Bowditch <bo...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Percental table column      |[PATCH] Percental table
                   |width not calculated from   |column width not calculated
                   |table                       |from table

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50901] Percental table column width not calculated from table

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

--- Comment #3 from carsten.pfeiffer@gebit.de 2011-03-09 08:27:15 EST ---
Created an attachment (id=26753)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26753)
The RTF output without the patch applied, all column are visible

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50901] [PATCH] Percental table column width not calculated from table

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

--- Comment #6 from Glenn Adams <gl...@skynav.com> 2012-04-07 01:42:01 UTC ---
resetting P2 open bugs to P3 pending further review

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50901] [PATCH] Percental table column width not calculated from table

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #8 from Glenn Adams <gl...@skynav.com> 2012-04-08 20:22:25 UTC ---
patch landed at http://svn.apache.org/viewvc?view=revision&revision=1311081

thanks carsten!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50901] [PATCH] Percental table column width not calculated from table

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50901] Percental table column width not calculated from table

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

--- Comment #2 from carsten.pfeiffer@gebit.de 2011-03-09 08:26:45 EST ---
Created an attachment (id=26752)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26752)
The RTF output without the patch applied, only 1 column is visible

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50901] [PATCH] Percental table column width not calculated from table

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

--- Comment #7 from Glenn Adams <gl...@skynav.com> 2012-04-08 09:11:03 UTC ---
increase priority due to presence of a patch

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50901] Percental table column width not calculated from table

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50901

--- Comment #1 from carsten.pfeiffer@gebit.de 2011-03-09 08:25:48 EST ---
Created an attachment (id=26751)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26751)
Patch that fixes the problem for me.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.