<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - The column attribute style:re-column-width is wrongly read"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=109305">109305</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>The column attribute style:re-column-width is wrongly read
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0.0.0.alpha0+ Master
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>URL</th>
<td>http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1420120_253892949
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rb.henschel@t-online.de
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=134813" name="attach_134813" title="Relative column width example">attachment 134813</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=134813&action=edit" title="Relative column width example">[details]</a></span>
Relative column width example
Section "20.330 style:rel-column-width" in the ODF spec describes how to
calculate the actual column width this way:
"If rc is the relative with of the column, rs the sum of all relative columns
widths, and ws the absolute width that is available for these columns the
absolute width wc of the column is wc=rc ws/rs."
The attached document has a table of total width 11cm. The column C has a fixed
with of 5cm. Column A and B have the relative width 1* and column D the
relative width 2*. With this values I get:
ws = 11cm-5cm=6cm
rs = 4
Therefore the calculated absolute widths should be:
column A width 1*6cm/4 = 1.5cm
column B width 1*6cm/4 = 1.5cm
column C width 5cm (fixed)
column D width 2*6cm/4 = 3cm
But the widths by LibreOffice are
Column A width 2cm
Column B width 1.33cm
Column C width 5cm
Column D width 2.67cm</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>