From: antonio <an...@co...> - 2004-07-22 10:30:53
|
Hi folks, I'm tring to use the htmlmenu widget, but I have some problems ... the menu's items doesn't respect the assigned height. This i the code: t = '<center><table border="0"><tr><td width="600">{@mnu}</td></tr></table></center>'; var tp = new Template(null,10,10,600,30,''); tp.addChild(new HTMLMenu(),'mnu'); var mbar; mbar= tp.mnu.createMenuBar('mother', 80, 20); mbar.addItem(null, 'tbl', 'tbl', null, 56); mbar.addItem(null, 'adm', 'adm', null, 120); mbar.addItem(null, 'edit', 'edit', null, 32); mbar.addItem(null, 'tools', 'tools', null, 40); mbar.addItem(null, 'logout', 'logout', null, 48); mbar= tp.mnu.createMenuBar('edit', 80, 20); mbar.addItem(null, 'save', 'save', null, 32); mbar.addItem(null, 'reset', 'reset', null, 40); mbar= tp.mnu.createMenuBar('tools', 80, 20); mbar.addItem(null, 'password', 'password', null, 120); mbar.addItem(null, 'data', 'data', null, 136); dynapi.document.addChild(tp); dynapi.onLoad(function(){ tp.setHTML(t); }) In other words the items password or data or save or reset (the items which are sons) have an height that is not the right height ... it seems that it enlarge in relation with the number of words of the item's text where I'm wrong? Any help? Really thanks Antonio |