PDA

View Full Version : YUI MenuBar in BorderLayout



paultyng
4 Dec 2006, 11:41 AM
I created my own Menu and MenuBar with corresponding items to handle the rendering issue when used in a BorderLayout, they can be found on this thread:

http://www.yui-ext.com/forum/viewtopic.php?t=298&start=30

Basically they just override render in the submenus to make them render to document.body instead of the container of the MenuBar. The additional classes are used for proper instantiation of children created only through config data instead of consumer instantiation.

A little faster than attaching to all your submenus click and over events iteratively and only occurs once on the item render.

jack.slocum
5 Dec 2006, 5:52 AM
Thanks for posting about this. That is very common issue!

creiht
6 Dec 2006, 1:08 PM
Would it be possible to give a small example using this. My JS fu is still a bit lacking. Thanks!

vk_phoenixfr
23 Jan 2007, 8:35 AM
Yes, please help... :roll: