|
home / faq / faq 12
Frequently Asked Question #12
Question: My permanently-displayed menus won't stay put at the
position I've defined for them; they keep getting repositioned to be within the
browser window (usually right at the top of the window). This happens most often
when I resize my browser window after I've scrolled it down, or sometimes if I
scroll the page quickly while it is still loading. Also, my horizontal and/or
permanently visible menus now display scroll bars. I didn't notice either of
these problems in HierMenus 5. How can I stop this?
Answer: Both of these questions refer to behavior changes that were made
in version 6 of HierMenus. In v4/5 of HierMenus, permanently displayed menus
(IsPermanent equals
true), and position under menus
(PositionChild equals
above or below) were never allowed to be scrollable and never followed
the standard HierMenus keep in window behavior. Additionally, horizontal menus were also
never allowed to be scrollable. In HM 6, these restrictions have been removed. If you want
to emulate the version 5 behavior, you will therefore need to set your permanent,
horizontal, and/or position under menus like this:
IsPermanent:true,
ScrollEnabled:false,
TopKeepInWindowX:false,
TopKeepInWindowY:false,
ChildKeepInWindowX:false,
ChildKeepInWindowY:false
The most common way to see the repositioning issue is to scroll the
HTML page such that the permanently displayed menus are outside the browser
window, then resize the browser window (which automatically repositions the
menus). If the menus are placed within the browser window (usually at the
top of the window) then the Keep In Window overrides are not in place;
you can force them to be in place on the menu by using the parameters described
above (and see the reference entries below for more details).
Another commonly reported way to see the problem is
to quickly scroll the HTML page while it is still loading. Since HM always
waits until after the page is loaded to generate (and position) menus, if
you scroll the page quickly while the page is still loading then HM may
position the menus inside the new coordinates of the browser window. Again,
if this is happening to you, use the Keep In Window parameters above to
override this behavior.
For further information see the following parameter reference entries:
ScrollEnabled
TopKeepInWindowX
TopKeepInWindowY
ChildKeepInWindowX
ChildKeepInWindowY
|