Positioning is the only way to do it, it is not so much of a pain, and is the way it was done previously. I also have done this using the 'list' widget, and opening other lists to the side of the selected list, expanding left to right, leaving the parent element's list static. What you seem to want has been done using layers and just sliding up what is below. Everything below a given item is one dynLayer, and is a child of the item above it when collapsed so it can move with the item above it in one operation, or a DynLayer over it (in Z, not a child) when not collapsed, so it can slide over the item above it's sub-menu items. But whatever is under it is it's children, so they all slide together in one operation. Moving one dynlayer up or down has the effect of sliding up everything that is below it vertically. This is a great trick used I think by DanSteinmann on one of his original DynAPI menu examples. hope you can figure it out I know it is sort of weird (manage child/parent dynamically etc). Possibly having static elements and managing their visibility would work better, and having copies but for large menues?? Maybe it'd work well. I like using the list widget myself. I've optimized it's speed and don't know if the code is up. Todd.
----- Original Message ----- From: "Raymond Irving" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 25, 2002 10:09 AM Subject: Re: [Dynapi-Help] collapsing areas (display:none for ns4) > > With DynLayers try using mylayer.css.display='none' > inside NS4 > > -- > Raymond Irving > > --- Csaki Andras <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm trying to roll my own hierarchical dhtml menu. > > Like this: > > o head1 > > *item > > *item > > o head2 > > *item > > *item > > o item > > > > Obviously, by closing a submenu, I need to hide the > > associated area > > containing the menuitems (collapse the menu). > > This is a piece of cake with IE, setting a div's > > display property to > > 'none' does all I want. Setting a layers visibility > > in > > Netscape4 to 'hidden' actually hides the layer, but > > does not reflow the > > content below it (the menu does not fold, just > > disappears). DynLayer's > > setVisible does not solve my problem either. > > So what should I do? Should I manage the layout > > myself by arranging the > > (sub)menus with explicite positioning when folding > > or unfolding occures? > > This would be a real pain in the ass I think. Or > > there's some tool in > > DynAPI I could use? > > > > > > Andras > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Dynapi-Help mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dynapi-help ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help