PDA

View Full Version : [2.0b1][SOLVED] Menu width is not updated on IE when items are added after rendering



splintor
22 Oct 2007, 5:16 AM
Hi,
I have a submenu that initially shows "Loading..." when displayed, than an AJAX request is sent, and the menu is updated. I found out that the menu width is not updated on IE when items are added.

I checked the code and saw that both Ext.menu.Menu.addItem and Ext.menu.Menu.insert calls Ext.menu.Menu.delayAutoWidth, but when I looked in the code of Ext.menu.Menu.delayAutoWidth, I saw it starts by
if(this.rendered){
...
However, Ext.menu.Menu.render (unlike Ext.Component.render, Ext.tree.TreeNode.render and Ext.tree.TreeNodeUI.render) never calls
this.rendered = true;
So Ext.menu.Menu.delayAutoWidth is never really executed.

This seems like a bug.

Regards,
splintor

jack.slocum
22 Oct 2007, 2:05 PM
Thanks. Changed to check for this.el like the rest of the menu class.