Bug #35586
closedmaxWInText dont work as expected
0%
Description
I'm not shure if it's a bug or feature, but I remember it works differently in previous verions.
If maxWInText is set for example to 400, the column is 600 px wide and there is an image of 150 px, than the text should be 450 px. The CE is in this case a "Text & Images" and the "Position and Alignment" is set to "Beside Text, Left (or Right)". But now the margin-left property is 420 (textMargin = 20).
The margin will be calculated only by the maxWInText property and not by the image width.
Thanks!
Updated by Arno Dudek about 12 years ago
Is there any intention to fix this? Do you need more infos?
Updated by Arno Dudek about 12 years ago
Found the problem now. It's part of the static TS of css_styled_content.
There is at 4.7
tt_content.image { 20.layout.25.value = <div class="csc-textpic csc-textpic-intext-right-nowrap###CLASSES###">###IMAGES######TEXT###</div> 20.layout.25.insertData = 1 20.layout.26.value = <div class="csc-textpic csc-textpic-intext-left-nowrap###CLASSES###">###IMAGES######TEXT###</div> 20.layout.26.insertData = 1 }
instead of
tt_content.image { 20.layout.25.value = <div class="csc-textpic csc-textpic-intext-right-nowrap###CLASSES###">###IMAGES###<div style="margin-right:{register:rowWidthPlusTextMargin}px;">###TEXT###</div></div> 20.layout.25.insertData = 1 20.layout.26.value = <div class="csc-textpic csc-textpic-intext-left-nowrap###CLASSES###">###IMAGES###<div style="margin-left:{register:rowWidthPlusTextMargin}px;">###TEXT###</div></div> 20.layout.26.insertData = 1 }
Will this be intended?
Updated by Michael Bakonyi over 11 years ago
I experience the same issue with 4.7.7. According to this issue #36541 the registers are not used anymore with 4.7. But it seems that the margin is calculated wrong with your mentioned positioning.
Updated by Jost Baron over 10 years ago
Some more info: The margin is calculated by the first maxWInText that is found on the page. If that is set to some huge value (e.g. in a slider or by a content element using EXT:nwt_imagecrop), all later rendered "image beside text" content elements will have the same huge margin applied to the text part, except if the image dimensions on the later content element are set explicitely.
Updated by Mathias Schreiber over 9 years ago
- Target version set to 7.2 (Frontend)
- Is Regression set to No
Updated by Benni Mack about 9 years ago
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Updated by Susanne Moog about 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Benni Mack almost 9 years ago
- Target version changed from 7.5 to 7 LTS
Updated by Mathias Schreiber almost 9 years ago
- Status changed from New to Closed
won't fix, since we are moving to Fluid Rendering of CEs