|
||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
Definition of Menu PositionCodeThatMenu supports an ability of absolute and relative positioning for menu.
In this example the menu is created with absolute positioning and we put it at the point (200, 40). When "absolute" property is set in false, it means the menu is created with relative positioning. CodeThatManu allows you to customize different positioning for submenus (relatively to higher menu). It means you can set a point on the higher menu to which you attach a submenu:
For this purpose the "anchor" property is used. You also can specify the corner or side of sub-menu, which will be sticked to higher menu (n, s, w, e, nw, ne, sw, se). For this purpose the "anchor_side" property is used. You can specify custom value for sub-menu offset by using "menuoffset" property. To specify sub-menu position use the folowing construction:
Example - Menu PositioningYou can see an example and complete code here - Menu Positioning Example |
||||||||||||||||||||||
|
||||||||||||||||||||||
© CodeThat.com, 2003-2010 |
||||||||||||||||||||||