View Full Version : Tooltip hides on menuItem click

4 Sep 2010, 8:55 AM
I have included a menu at bottom toolbar in ToolTip.
When I click a button a two (children) elements are shown.
Then after a click on one of them Tooltip hides.

How can be set a tooltip not to hide after menuItem click event?

4 Sep 2010, 9:34 AM
Render the menu into the ToolTip's el when the ToolTip is rendered.

Also don't forget to configure the Menu with a larger zIndex than the ToolTip gets.

4 Sep 2010, 9:43 AM
Nah, that won't work.

Configure the ToolTip with

onDocMouseDown : function(e){
if (e.within(tipMenu.el)) return;
this.constructor.prototype.onDocMouseDown .apply(this, arguments);

Where tipMenu is the Menu object.

6 Sep 2010, 12:47 PM
Big thanks Animal, I'll try it :)

It works ;)