amitdivya / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

table column width incorrectly accounts for non-flowed content width #491

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Create a table with two cells where one cell contains only an absolutely 
positioned element.

What is the expected output? What do you see instead?
When rendered the column with the positioned element should render with a width 
similar that that of an empty cell. Instead it is rendered to the width of the 
positioned element.

Originally reported in the support group: 
https://groups.google.com/d/topic/dompdf/OkpARUqiRQE/discussion

Confirmed in trunk r493.

Simple test case:
<table border="1"><tr>
<td><div style="position: absolute;">positioned div with some text</div></td>
<td></td>
<td>A normal table cell with a little bit of text</td>
</tr></table>

Original issue reported on code.google.com by eclecticgeek on 31 May 2012 at 2:29

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00