Project

General

Profile

Actions

Bug #37957

closed

Width of images ignored if height set

Added by Stefan Neufeind over 12 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2012-06-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Proposed solution:
  • 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?


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #19996: Implement MaxHClosedDmitry Dulepov2009-02-11

Actions
Actions

Also available in: Atom PDF