Board Logo

Indention Problem
TonyFrench - 3/15/2007 at 01:33 AM

I am having issues with indention. The first group indents properly, but the second group does not, it aligns with the higher level.

Here is a sample of my TREE.

var TREE_ITEMS = [
["Browse by Season",null,null,
["<strong>Everyday</strong>","/main/shop.do?action=init&itemID=7&itemType=CATEGORY", null,
["Premium Chocolates","/main/shop.do?action=init&itemID=161&itemType=CATEGORY", null,null],
["Sugar Free","/main/shop.do?action=init&itemID=162&itemType=CATEGORY", null,null],
["Net Carb","/main/shop.do?action=init&itemID=163&itemType=CATEGORY", null,null],
["Weight Watchers&reg","/main/shop.do?action=init&itemID=164&itemType=CATEGORY", null,null],
["DiabetX & Sucratol","/main/shop.do?action=init&itemID=180&itemType=CATEGORY", null,null],
["New","/main/shop.do?action=init&itemID=26&itemType=CATEGORY", null,null],
["Boxed Chocolates","/main/shop.do?action=init&itemID=27&itemType=CATEGORY", null,
["Assortments","/main/shop.do?action=init&itemID=28&itemType=CATEGORY", null,null],
["Nuts & Peanut Butter","/main/shop.do?action=init&itemID=29&itemType=CATEGORY", null,null],
["Creams, Mints & Coconut","/main/shop.do?action=init&itemID=30&itemType=CATEGORY", null,null],
["Caramels & Toffee","/main/shop.do?action=init&itemID=31&itemType=CATEGORY", null,null],
["Truffles, Fudge & Cordials","/main/shop.do?action=init&itemID=32&itemType=CATEGORY", null,null],
["Premium Chocolates","/main/shop.do?action=init&itemID=33&itemType=CATEGORY", null,null],
["Sugar Free","/main/shop.do?action=init&itemID=34&itemType=CATEGORY", null,null],
["Net Carb","/main/shop.do?action=init&itemID=35&itemType=CATEGORY", null,null]
],
["Peg Bags","/main/shop.do?action=init&itemID=36&itemType=CATEGORY", null,null],
["Laydown Bags","/main/shop.do?action=init&itemID=37&itemType=CATEGORY", null,null],
["Rolltop Bags","/main/shop.do?action=init&itemID=38&itemType=CATEGORY", null,null],
["Candy Bars","/main/shop.do?action=init&itemID=44&itemType=CATEGORY", null,null],
["Tins & Gift Boxes","/main/shop.do?action=init&itemID=41&itemType=CATEGORY", null,null],
["Hard Candies & Jellies","/main/shop.do?action=init&itemID=40&itemType=CATEGORY", null,null],
["Breakfast Bars","/main/shop.do?action=init&itemID=153&itemType=CATEGORY", null,null],
["Value Packs/Multipacks","/main/shop.do?action=init&itemID=39&itemType=CATEGORY", null,null],
["Displays & Floorstands","/main/shop.do?action=init&itemID=42&itemType=CATEGORY", null,null]
],
["<strong>Spring/Mother's Day</strong>","/main/shop.do?action=init&itemID=8&itemType=CATEGORY", null,
["Weight Watchers&reg","/main/shop.do?action=init&itemID=169&itemType=CATEGORY", null,null],
["Premium Chocolates","/main/shop.do?action=init&itemID=170&itemType=CATEGORY", null,null],
["Sugar Free","/main/shop.do?action=init&itemID=171&itemType=CATEGORY", null,null],
["Net Carb","/main/shop.do?action=init&itemID=172&itemType=CATEGORY", null,null],
["New","/main/shop.do?action=init&itemID=54&itemType=CATEGORY", null,null],
["Everyday Boxed Chocolates","/main/shop.do?action=init&itemID=59&itemType=CATEGORY", null,
["Assortments","/main/shop.do?action=init&itemID=102&itemType=CATEGORY", null,null],
["Nuts & Peanut Butter","/main/shop.do?action=init&itemID=103&itemType=CATEGORY", null,null],
["Creams, Mints & Coconut","/main/shop.do?action=init&itemID=104&itemType=CATEGORY", null,null],
["Caramels & Toffee","/main/shop.do?action=init&itemID=105&itemType=CATEGORY", null,null],
["Truffles, Fudge & Cordials","/main/shop.do?action=init&itemID=106&itemType=CATEGORY", null,null],
["Premium Chocolates","/main/shop.do?action=init&itemID=107&itemType=CATEGORY", null,null],
["Sugar Free","/main/shop.do?action=init&itemID=108&itemType=CATEGORY", null,null],
["Net Carb","/main/shop.do?action=init&itemID=109&itemType=CATEGORY", null,null]
],
["Peg Bags","/main/shop.do?action=init&itemID=60&itemType=CATEGORY", null,null],
["Laydown Bags","/main/shop.do?action=init&itemID=61&itemType=CATEGORY", null,null],
["Rolltop Bags","/main/shop.do?action=init&itemID=62&itemType=CATEGORY", null,null],
["Candy Bars","/main/shop.do?action=init&itemID=63&itemType=CATEGORY", null,null],
["Tins & Gift Boxes","/main/shop.do?action=init&itemID=64&itemType=CATEGORY", null,null],
["Hard Candies & Jellies","/main/shop.do?action=init&itemID=65&itemType=CATEGORY", null,null],
["Breakfast Bars","/main/shop.do?action=init&itemID=154&itemType=CATEGORY", null,null],
["Value Packs/Multipacks","/main/shop.do?action=init&itemID=66&itemType=CATEGORY", null,null],
["Displays/Floorstands","/main/shop.do?action=init&itemID=67&itemType=CATEGORY", null,null]
]
]]

So, in this example, items under "EveryDay" are indented properly, but items under "Spring/Mother's Day" are not.

Got any ideas?

Thanks


tigra - 3/15/2007 at 02:26 PM

dropped your items in Tigra Tree Menu PRO demo and it worked fine


TonyFrench - 3/16/2007 at 03:06 PM

So I guess that means it is a CSS issue or something related to that?


tigra - 3/16/2007 at 10:49 PM

If the image above looks the way you want your tree look like then just do what I did: start with the working tree configuration using your items variable.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/