PDA

View Full Version : Positioning Menu


Bert-Tinge
09-25-2007, 04:21 PM
Probably a silly question, but....

I have created a table which controls positioning of screen elements. I have placed my udm menu code into the appropriate cell. The udm menu appears in the top left of the screen overlaying the table elements.

How can I position the menu using the table?

Any help gratefully received.

bcarl314
09-25-2007, 05:03 PM
Sounds like you may be positioning the menu absolutely instead of relatively.

Open up your udm-custom.js file and look for this section:


//navbar orientation

um.orientation = [
"vertical", // alignment ["vertical"|"horizontal"|"popup"|"expanding"]
"left", // h align ["left"|"right"]
"top", // v align ["top"|"bottom"]
"absolute", // positioning ["relative"|"absolute"|"fixed"|"allfixed"]
"0.5em", // x position ["em"|"ex"|"px"|"0"]
"0.5em", // y position ["em"|"ex"|"px"|"0"]
"1000", // z order ["0" to "10000"] (menu takes 20000 headroom)
];


Change the "absolute" to "relative"

You may also want to check out these demos:

http://www.udm4.com/demos/vertical-relative-left-table.php

and

http://www.udm4.com/demos/horizontal-relative-left-table.php

Bert-Tinge
09-25-2007, 07:27 PM
Thank you!

I did see this setting but wrongly assumed that the 'Nav Bar Orientation' only controlled the Nav Bar and not the menu.

Thanks Again.