Issue Feature Closed

#17466Caluculate of gifbuilder XY width max([10.w]|[20.w])

Daniel Kyak 07/12/07, 14:15 updated 01/07/14, 10:32

Description

You want to create a GMENU by useing TypoScript.
The text of the GMENU should have 2 lines.
In one case the first line is longer. In another case the second line is longer.
So you need maximum line width of these two lines.

The patch calculate this by using the max-function.

1 = GMENU
1 {
    NO {
        XY = max([10.w]|[20.w])+4, 32
        10 = TEXT
10 {
text.field = title
text.case = upper
fontSize = 6
fontColor = #333333
fontFile = {$const.navigation.main.font}
offset = 0,14
align = center
}
20 = TEXT
20 {
text.field = subtitle
text.case = upper
fontSize = 6
fontColor = #333333
fontFile = {$const.navigation.main.font}
offset = 0,24
align = center
}

(issue imported from #M5954)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.