[TYPO3-core] RFC Feature #10725: Integrate possibility to determine maximum of multiple values in GIFBUILDER
Steffen Kamper
info at sk-typo3.de
Thu Mar 19 13:29:14 CET 2009
Hi olly,
nice idea!
+1 from reading, i will test and review soon.
vg Steffen
Oliver Hader schrieb:
> 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
>
More information about the TYPO3-team-core
mailing list