Bug #37957
closedWidth of images ignored if height set
0%
Description
An image-contentelement has settings for imagewidth and imageheight. You can use them to specify the maximum width or the maximum height of an image. If however you intend to give the image a maximum bounding-size (for example if placed in a container of fixed size) this does not work. When imageheight is set, this value overrides whatever is set as imagewidth and thus the images can get even wider as specified.
Root-cause for this is that there is no maxH (maximum height). Instead in css_styled_content the setting equalH is used (since no maxH is available). When using multiple images in one element this is intended to make all images have an equal height (and by that also overriding the specified maxW).
Currently there is:
typo3/sysext/css_styled_content/static/setup.txt: equalH.field = imageheight
- Introduce another field "imageheightfixed" in the image-content-element (and maybe also "imagewidthfixed" for completeness?) to have a setting that can be used to behave as it does currently (using equalH).
- Implement a setting maxH
- In upgrade-wizard between two TYPO3-versions move all values from current field "imageheight" to the new "imageheightfixed"
- Fix css_styled_content to use all those three/four fields as intended.
This would be a "BC-break" but with a clear migration-path. Maybe we could do that on the step 4.7 to 6.0?