[TYPO3-core] RFC: Fixes to css based imgtext

Ingmar Schlecht ingmar at typo3.org
Wed Mar 29 22:00:25 CEST 2006


This is a CVS patch request for the latest bunch of fixes to the css
based imgtext implementation from Ernesto.

Type: Bugfix

BT reference: http://bugs.typo3.org/view.php?id=2995

According to Ernesto, it fixes the following issues:
> * Now the CSS version of "Text w/images" and "Images" (table-less) also respect the textMargin constant so that (finally) the user can specify a different margin to separate the image block from the text. "colSpacing" now only applies to inter-images spacing, which is what the table-based approach also does.
> * For this to work we need to apply two new classes to the images (csc-textpic-firstcol and csc-textpic-lastcol). This is configurable through an optionSplitted new property "addClassesImage" of the USER object
> * Having this also allowed us to fix a bug in positioning: The whole image-block can now stretch correctly over the given width without any margins around it (which is required if you have just an image-block, without text). Without the patch, you always have "margin-right" (if images are placed to the left or center) or "margin-right" (if images are placed to the right).
> * Fixed also a problem with the calculation of image width if we have borders and border-spacings: Now the whole image-block will always be exactly maxW wide (so if you have borders and spacing, the images will get slightly smaller). Without this, the image-block could "explode" a fixed-width layout.
> * Bug fix for bug 0002995: wrong image widths for images that have explicit width set in the content element (now it works like the "good-old" content (default) does, so backwards compatible)
> * Removed "unused" defaultW property, which were added by cron_cssstyledimgtext but never used in the integration.

cheers,
Ingmar
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: class.tslib_content.php.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060329/9aabed63/attachment.asc 


More information about the TYPO3-team-core mailing list