[Typo3] IMGMENU (+calc) problems

Peter Klein peter at umloud.dk
Thu Sep 1 13:22:20 CEST 2005


"Jacco Lammers" <jlammers at sundayafternoon.nl> skrev i en meddelelse 
news:mailman.1.1125325488.19463.typo3-english at lists.netfielders.de...
> Best list,
>
> I've got a working IMGMENU running, but with creating active state 
> properties I encounter a problem: the BOX (4.dimensions) will not do 
> +calc. It just creates a box of 10px width instead of the wanted [4.w]+10. 
> Is this a bug or am I doing something wrong? Any ideas someone?
>
> ...
> temp.menu_1.1.ACT = 1
> temp.menu_1.1.ACT {
>     # Active state properties
>   distrib = textX+20, 0
>
>   20 = TEXT
>   20 {
>     backColor = white
>     text.field = title
>     fontSize = 11
>     fontColor = black
>     fontFile = t3lib/fonts/SSCBd.ttf
>     offset = 25,9
>     imgMap.explode = 3,2
>     niceText = 1
>     align = center
>   }
>
>   4 = BOX
>   4.color = white
> # And this will not work properly:
>   4.dimensions = -10,-3,[20.w]+10,17
>   4.align = center
> }
> ...
>

Hi Jacco. It could be that the 20 object gets created AFTER the 4 object (no 
matter whice order you place them in.).
So the width of the 20 object haven't been defined yet.

-- 
Peter Klein/Umloud Untd





More information about the TYPO3-english mailing list