[Typo3] menu item image gets cut off or truncated

Vincent typo3 at crel.us
Fri Oct 14 07:33:59 CEST 2005


On Thu, Oct 13, 2005 at 06:30:50PM -0500, Vincent wrote:
> On Thu, Oct 13, 2005 at 10:20:13AM +0100, Mike Meir wrote:
> > Hi
> > 
> > You can get all the menu item to appear if you set the Character Spacing to 0. The default setting is 1, which adds space between the characters, but does not seem to lead to a corresponding increase in the calculated width of the string.
> > 
> > You should be able to do this in the Constants Editor.
> > 
> > For example:
> > 
> > styles.gmenu_layer.green.spacing = 0
> > 
> > Obviously there is a deeper propblem somewhere which I have not tracked down.
> > 
> > Best Wishes
> 
> Hi Mike.
> 
> The RE template did not seem to have a letter spacing constant.
> I included styles.gmenu_layer.green under the "Include static" section,
> so that the styles.gmenu_layer.green.spacing constant was available
> under the heading, "Letter spacing".  I set it to 0 and clicked "clear
> all cache" but it still had no effect.
> 
> I tried including the style both after and before "template; RE".  Is
> there something else that needs to be done to get it take effect?

Ok. I finally figured out why the letter spacing had no effect.  The
styles.gmenu_layer.green template only applies if you are using
"template; GREEN".  As a newbie, I still have not found any docs that
make that clear.  I suspected it and finally noticed in the Template
Analyzer that styles.gmenu_layer.gmenu_layer got automatically included
when I used "template; GREEN".  

I still have not found any documentation that explains the use of the
static templates very well.  For example, which ones should be manually
selected?  Apparently the appropriate "styles.xxx" gets included based
on the template selection.  Does this apply to all other static
templates in the list?  In other words, are the "template; xxx"
templates the only ones that should be manually selected?  If not, is
there a document that tells me which ones can be?  I found the "Details
of Static Templates" document, but it just lists the source code for
each of the templates.

Back on the original problem:

Apparently there is not a style template for "template; RE" that
provides a constant for setting the spacing between the letters.  So
I apparently cannot work around the problem with that template, which is
a little disappointing because I kind of like the appearance of it.





More information about the TYPO3-english mailing list