Project

General

Profile

Actions

Feature #17466

closed

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

Added by Daniel Kyak almost 17 years ago. Updated over 10 years ago.

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

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

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)


Files

class.tslib_gifbuilder.php.diff (1.51 KB) class.tslib_gifbuilder.php.diff Administrator Admin, 2007-07-12 14:15
giffbuilder-rpn.diff (33.7 KB) giffbuilder-rpn.diff Administrator Admin, 2008-06-10 17:41
Actions

Also available in: Atom PDF