Module is ignorning SetItemDimension, as well as %module_path

canadrian@elect... - May 7, 2007 - 00:50
Project:Lucid menu
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm trying to model my menus after one of the example ones in the demo. I've managed to get most of my customizations to take, but I've encountered the following problems.

  1. The module doesn't actually use %module_path as specified. I've had to hard-code my image paths. If it's of any use to you, I have the module installed in sites/all/modules
  2. For some reason the module is ignoring the SetItemDimension parameter. No matter what I put in, the menu items remain bulbous blocks, rather than the slim rectangles I'm aiming for. :) You can see what I mean by visiting ElectricTeaParty.net
    1. Here's my list of customizations, in case it's of any use:

      SetExpandIcon(true,'','')
      SetPosition('relative',0,0)
      SetCorrection(-19, -150)
      _pop.SetCorrection(-12, -150)
      SetCellSpacing(0)
      SetItemDimension(150,20)
      SetBackground('navy','','','')
      SetFont('verdana,tahoma,arial','10pt')
      SetItemText('navy','left','bold','','nowrap')
      SetItemBackground('#66CCFF','/files/but.png','repeat-x','')
      SetItemBorder(1,'#66CCFF','solid')
      SetItemTextHL('navy','left','bold','underline','nowrap')
      SetItemBackgroundHL('#66CCFF','/files/but.png','repeat-x','')
      SetItemBorderHL(1,'navy','solid')
      SetItemTextClick('white','left','bold','','nowrap')
      SetItemBackgroundClick('#66CCFF','/files/but1.png','repeat-x','')
      SetItemBorderClick(1,'navy','solid')
      SetBorder(1,'navy','solid')
      _pop.SetItemDimension(150,20)
      _pop.SetPaddings(0)
      _pop.SetBackground('navy','','','')
      _pop.SetExpandIcon(true,'','')
      _pop.SetFont('tahoma,verdana,arial','10pt')
      _pop.SetShadow(true,'#B0B0B0',5)
      _pop.SetDelay(500)
      _pop.SetItemBorder(1,'#66CCFF','solid')
      _pop.SetItemBorderHL(1,'navy','solid')
      _pop.SetItemPaddings(0)
      _pop.SetItemPaddingsHL(0)
      _pop.SetItemText('navy','left','bold','','nowrap')
      _pop.SetItemTextHL('white','left','bold','','nowrap')
      _pop.SetItemBackground('#66CCFF','/files/but.png','repeat-x','')
      _pop.SetItemBackgroundHL('#66CCFF','/files/but1.png','repeat-x','')

#1

mistknight - May 7, 2007 - 21:45

I'll check the %module_path to see what's wrong. As to the ignored directive, I would recommend you try to implement a test case on a separate page to check out weather the problem is specific to drupal or with the component itself.

#2

mistknight - May 7, 2007 - 21:49

I'll check the %module_path to see what's wrong. As to the ignored directive, I would recommend you try to implement a test case on a separate page to check out weather the problem is specific to drupal or with the component itself.

 
 

Drupal is a registered trademark of Dries Buytaert.