Bug #66629
closedCSS Styled Content - Image rendering
0%
Description
Hello,
in one of my projects i found a problem with the frontend rendering of images.
In this project i have 4 Content Areas with different widths (910 , 405 , 405 , 910).
If i add an image to the first area, at line 898 - 899 of CssStyledContentController.php the margin of .csc-textpic-intext-right-nowrap .csc-textpic-text is set to 465 ((910 / 2) + 10).
When i add an image to the second area, and this image is larger than 50% of the area, the marker .csc-textpic-intext-right-nowrap .csc-textpic-text is set as class, because in line 901 the marker was only set, if the imageBlockWidth != maxW. But .csc-textpic-intext-right-nowrap .csc-textpic-text is 50% of the first area and not of the second.
Solution:
Remove the condition && $maxW != $imageBlockWidth at line 901. So the marker .csc-textpic-intext-right-nowrap-' . $noWrapMargin . ' .csc-textpic-text' is allways set.
Old
if ($contentPosition == 24 && $maxW != $imageBlockWidth) {
New
if ($contentPosition == 24) {
Best regards
Bernd
Updated by Riccardo De Contardi about 9 years ago
- Category set to Content Rendering
Updated by Susanne Moog over 7 years ago
- Complexity set to hard
- Sprint Focus set to On Location Sprint
Updated by Anja Leichsenring about 7 years ago
- Sprint Focus deleted (
On Location Sprint)
Updated by Mathias Schreiber about 7 years ago
- Status changed from New to Closed
HTMLArea is no longer supported by TYPO3.
You can open up new issues here https://github.com/FriendsOfTYPO3/rtehtmlarea.
Cheers
Mathias