|
home / documentation / reference / menuwidth
MenuWidth
- Description:
- The width of the menu, in pixels.
- Value:
- Integer, or JavaScript expression that returns an integer.
- Applies To:
- Menus.
- Browser Compatibility:
- MenuWidth is supported in all browsers.
- Comments:
- In HierMenus, MenuWidth always includes the border and
padding width of the menus, as the following image illustrates:

You must always specify MenuWidth as a number, or a JavaScript expression that
returns a number. Do not use quoted strings or non-numerical characters when
defining MenuWidth. MenuWidth is always interpreted by HM
in pixels.
If the menu is also variable width
(IsVariableWidth is set to true),
then MenuWidth becomes the maximum width of the menu. Variable width
menus will not exceed the width specified in MenuWidth even if
VariableWidthMinimum is larger than
MenuWidth.
- Examples:
// Ok:
MenuWidth:100,
MenuWidth:600,
MenuWidth:(HM_IE)?300:400, // 300 in IE, 400 all others
// Incorrect:
MenuWidth:"100",
MenuWidth:150px,
MenuWidth:"(HM_IE)?300:400", // Do not quote expressions here
- Default:
- 150
- See Also:
-
IsVariableWidth,
VariableWidthMinimum
|