[TYPO3-core] RFC Feature #10725: Integrate possibility to determine maximum of multiple values in GIFBUILDER

Oliver Hader oliver at typo3.org
Thu Mar 19 00:48:23 CET 2009


This is an SVN patch request.

Type: Feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=10725

Branches: Trunk

Problem:
Imagine you've two different and dynamically controlled elements in a
GIFBUILDER object, e.g. a capital letter and then some more small text.
It's not possible to determine the height of the whole element easily.

Solution:
Integrate a max() function for calculation offsets, like:
XY = [10.w]+[20.w], max([10.h], [20.h])
Thus, the height in the example is the maximum of the values in 10.h and
20.h.
If the "max()" keyword is found in the string the inner content gets
pre-calculated before the regular process in calcOffset().

Notes:
A TypoScript test case is attached that created a big word followed by
some smaller words baselined to the first one. The height of the object
is given by the first object - since it defines the meximum.

Documentation changes:
TSref: GIFBUILDER, section "NOTE (+calc)"
Add after first paragraph and before example starts:
On using the special function max() the maximum of multiple values can
be determined.
Example: XY: [10.w]+[20.w], max([10.h], [20.h])


olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0010725_test.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090319/ba809feb/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0010725.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090319/ba809feb/attachment-0001.txt 


More information about the TYPO3-team-core mailing list