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:
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.
menu.add("a", "b", "c");
Is this a known problem? I couldn't find any reference to it.
What can be done to handle this?