Hiermenus Go Forth, XXVII - DHTML Lab | 5
Hiermenus Go Forth, XXVII:
Version 4.2.1 - The Complete Script (Full-Window)
IE4 Change
In IE4, the "more" images in right-to-left vertical menus were displayed on the right instead of in the alloted space on the left of the item. This was due to a cut-and-paste mistake, erroneously identifying the item's parent tree variables, causing a minor code regression. This has been fixed.
Other Changes
Menu Repositioning During Window Resize
In our original resize code, introduced in HM4.0.9, the resize handler figured out where-a-child-menu-should-be-ideally-positioned-in-relation-to-its-parent before making adjustments for the new window size and finally positioning it. In HM, we have lightened the burden on the handler by having it simply call the regular positioning code element.showChild(). A bit more processing might be done this way, but it makes the code more elegant and easier to maintain. This change affects the DOM and IE4 code bases.
"Lazy" Bottom Scrollbar Repositioning During Window Resize
In certain cases, when short menus displayed scrollbars, through window resize (and attempts to break HM ) the bottom scrollbar would not reposition or disappear when the menu regained its original height. This has been fixed and applies to the DOM and IE4 code bases.
Thanks to John Gillett for pointing this out. John's first mention in these pages was when Version 3.02 was published in October 1998, close to 3 1/2 years ago! He should know HM as well as I do, I assume. Thanks for the input over the years, John.
NS4 Changes
There have been no changes to the NS4 code base, as all the fixes relate to menu behavior during resize, and there is no resize allowed in NS4, or to the IE event model which is completely different from the NS4 one.
Files Changed in Version 4.2.1
- HM_ScriptIE4.js
- HM_ScriptDOM.js
You will need to overwrite previous versions of the above files to upgrade to 4.2.1
On the next page, a sample demonstration page.
Produced by Peter Belesis and
All Rights Reserved. Legal Notices.Created: February 19, 2002
Revised: February 19, 2002
URL: https://www.webreference.com/dhtml/column63/4.html