#66629CSS Styled Content - Image rendering
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
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.