Re: menu_widget2 and menu_bar
Matt <[email protected]> 17 Jun 2004 16:56:57 +0100
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Message-ID | <1087487816.8059.338.camel@kynx> |
> I'm happy to have a go at hacking menu_bar_widget.js to make a > menu_bar_widget2.js, but want to be sure this is the right way to go. OK, this isn't too difficult, and it's turning out to be a good way to get to know NW internals :) Trouble I'm having though is placing the menus on the page. The original menu_widget had a width specified (one of the reasons I want to use menu_widget2), and in the loop that added each to the menu bar these were simply added up for an accumulated width. I've tried the easy way - just making display='inline' for each menu node, but then the drop downs don't appear in the right place. I've also tried calculating the accumulated width using (line 137): accumWidth += __util__.getTotalWidth(retobj.labelNode); But no luck. In utility_core.js I can see that getTotalWidth() just returns node.offsetWidth, but I have no idea where or how this is supposed to be set. Any suggestions appreciated. Matt _______________________________________________ The netWindows developers list: [email protected] http://netwindows.org/mailman/listinfo/devel_netwindows.org