We are using SmartGWT versions 2.2 and 2.3 and are trying to figure out how to get a callback when a Menu is first displayed and when it is closed/hidden. Attempts to override various visible/visibility, show/hide, setAttribute, etc methods on Menu, Canvas, and BaseWidget have yet to be successful.
I did managed to get called via the addDrawHandler and the onDraw method but they only occur the very first time the menu is rendered and it doesn't tell me when it is "hidden". When watching what is happening with Firebug, I see the visibility attribute of the menu's div changing from hidden to inherit and back. I also see "top" changing to a location off the visible edge (to -9999).
I did managed to get called via the addDrawHandler and the onDraw method but they only occur the very first time the menu is rendered and it doesn't tell me when it is "hidden". When watching what is happening with Firebug, I see the visibility attribute of the menu's div changing from hidden to inherit and back. I also see "top" changing to a location off the visible edge (to -9999).