[TYPO3-core] RFC #5186: Bug: fixed rendering of multi-column image rows

Michael Bürgi michael.buergi at gmx.net
Wed Oct 6 10:42:01 CEST 2010


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=5186

Branches:
TYPO3_4-3 & TYPO3_4-4 & trunk

Problem:
The rendering of image content elements that arrange images in multiple columns is partly broken. Rounding errors in width calculation accumulate, so that the total width of the rendered image element exceeds the total width set by typoscript.

Solution:
My solution does distribute the rounding errors evenly across the whole image row. Accumulated row widths match the total width constraint (maxW) exactly. It works with and without equalHeight.

Notes:
I've attached two screenshots demonstrating the rendering of several image elements before and after applying the patch. Image elements are put into different content columns. They should align exactly to the column widths. On the right side, all images should be aligned to the right end of the golden top navigation bar. Only the patched version can achieve that.

Thank you very much for integrating the patch.
Kind regards
Michael Bürgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_5186.patch
Type: application/octet-stream
Size: 8196 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101006/d1a6cf2f/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typo3-maxW-bug-corrected.png
Type: image/png
Size: 677401 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101006/d1a6cf2f/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typo3-maxW-bug.png
Type: image/png
Size: 681714 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101006/d1a6cf2f/attachment-0003.png>


More information about the TYPO3-team-core mailing list