splintor
9 Oct 2007, 2:35 AM
Hi,
I have a sub-menu which initially displays "Loading, please wait...", and when displayed, sends an Ajax request and when the request returns, it updates the sub-menu content with a list of items, by calling something like:
menu.removeAll();
menu.add("a", "b", "c");
The update works well, but if it is all done while the sub-menu is visible, the shadow of the sub-menu remains in the size of the initial "Loading, please wait..." menu content, and is not updated to the new menu content. Hiding and re-showing the menu by moving the mouse solve the problem and displays a properly sized shadow.
Is this a known problem? I couldn't find any reference to it.
What can be done to handle this?
Regards,
splintor
I have a sub-menu which initially displays "Loading, please wait...", and when displayed, sends an Ajax request and when the request returns, it updates the sub-menu content with a list of items, by calling something like:
menu.removeAll();
menu.add("a", "b", "c");
The update works well, but if it is all done while the sub-menu is visible, the shadow of the sub-menu remains in the size of the initial "Loading, please wait..." menu content, and is not updated to the new menu content. Hiding and re-showing the menu by moving the mouse solve the problem and displays a properly sized shadow.
Is this a known problem? I couldn't find any reference to it.
What can be done to handle this?
Regards,
splintor