spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com


home / experts / dhtml / column52
Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

Logo

Hiermenus Go Forth, XVI:
Version 4.0.9 - The Complete Script (Full-Window)



Menu Position Upon Window Resize

In all browsers, except for NS4, the menu positions are now recalculated to adapt to the new window dimensions, automatically. As mentioned above, the left_position and top_position parameters are evaluated and the top level menu is repositioned accordingly. All child menus that are visible when the window is resized, are also repositioned.

Additionally, the menu position may change even if no values are present for left_position and top_position. For example, let's say that the user's window size causes a child menu (or even a top-level menu) to not be positioned in its intended location, since our script keeps the menus within the browser window:

The menu tree in the above example is forced to display within the browser window and not in the natural cascade location because the browser window is not "high" enough. This is the desired behavior.

If the user enlarges the window, the menu tree is repositioned to its originally intended location.



Version 4.0.9 also includes a couple of minor fixes.


Produced by Peter Belesis and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

All Rights Reserved. Legal Notices.
Created: May 1, 2001
Revised: May 1, 2001

URL: http://www.webreference.com/dhtml/column52/3.html