Oct 31, 2012, 12:22 PM
[OPEN] [#1316] [2.x] Tooltip is not shown when it is overflowed
Hi follks, i have a window that contains two button (_btnDoNotClick and _btnClick) on it's toolbar. The _btnClick is overflowed and when it is clicked, the event is not fired. Going further, the ToolTip of _btnClick is not shown on the same situation.
To reproduce the problem, run the following example, click (Handler) and leave the mouse over (ToolTip) _btnClick.
I would like to know whether the handler approach is acceptable (i prefer to use the click listener) and whether it's possible to fix the Button's ToolTip.
Thanks in Advance
EDIT: Original topic:
Button's click event is not being fired and the tooltip is not shown when it is overflowed
Changed to reflect current state of the issue. (there were two issues here before!)
To reproduce the problem, run the following example, click (Handler) and leave the mouse over (ToolTip) _btnClick.
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Window ID="Window1" runat="server" Title="Ext.Net" Closable="false" Height="250"
Width="160">
<TopBar>
<ext:Toolbar ID="Toolbar1" runat="server" EnableOverflow="true">
<Items>
<ext:Button ID="_btnDoNotClick" Icon="Accept" Text="Do not click me" runat="server" />
<ext:Button ID="_btnClick" Icon="Error" Text="Click ME!!!" runat="server">
<Listeners>
<Click Handler="alert('it is working');" />
</Listeners>
<ToolTips>
<ext:ToolTip runat="server" Title="Ext" Html="Net" />
</ToolTips>
</ext:Button>
</Items>
</ext:Toolbar>
</TopBar>
<Content>
<p>
Click on the hidden button up ahead</p>
</Content>
</ext:Window>
It's possible to overcome these issues by setting Button's handler property instead of using Button's click listener and by setting Button's ToolTip property instead of using the inner ToolTip property. Please replace the lines 08 to 15 by the following one:<ext:Button ID="_btnClick" Icon="Error" Text="Click ME!!!" Handler="alert('it is working');" ToolTip="Ext.Net" runat="server" />
But in my scenario it's not possible to overcome the ToolTip's problem, because the ToolTip must have a Title and a Message, and on the previous approach, it's only possible to set ToolTip's message.I would like to know whether the handler approach is acceptable (i prefer to use the click listener) and whether it's possible to fix the Button's ToolTip.
Thanks in Advance
EDIT: Original topic:
Button's click event is not being fired and the tooltip is not shown when it is overflowed
Changed to reflect current state of the issue. (there were two issues here before!)
Last edited by fabricio.murta; Apr 26, 2016 at 9:55 PM.