-
4 Mar 2011 8:38 AM #1
[FIXED][PR3] autoHide option doesn't work for ToolTip
[FIXED][PR3] autoHide option doesn't work for ToolTip
Hi,
autoHide : true option is ignored by ToolTip
-
5 Mar 2011 4:06 AM #2
Go to /test/ui/qtips/qtips.html
Hover over the "Bsic Tooltip" button. The tooltip appears, and after 5000ms, it autoHides.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
5 Mar 2011 10:05 AM #3
Hi,
Sorry, it was mistyping, i meant autoHide:false, tooltip always hide after move out from a target
-
5 Mar 2011 10:59 AM #4
It works here. I change that first one to use autoHide: false, and it doesn't hide.
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
6 Mar 2011 12:29 AM #5
Hi,
Here is my test case (it seems autoHide doesn't work if 'delegate' option is used)
HTML Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1"> <title></title> <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" /> <script type="text/javascript" src="../../ext-core-debug.js"></script> <script type="text/javascript" src="../../ext-all-debug.js"></script> <script type="text/javascript"> Ext.onReady(function () { new Ext.tip.ToolTip({ target : Ext.getBody(), delegate : ".tip-div", autoHide : false, html : "tooltip" }); }); </script> </head> <body style="padding:20px;"> <div class="tip-div" style="margin:10px;width:100px;height:100px;background-color:gray;"></div> <div class="tip-div" style="margin:10px;width:100px;height:100px;background-color:gray;"></div> </body> </html>
-
6 Mar 2011 8:12 PM #6
Can you please try the following?
Code:Ext.tip.Tooltip.override({ onMouseMove: function(e) { var me = this, t = me.delegate ? e.getTarget(me.delegate) : me.triggerElement = true, xy; if (t) { me.targetXY = e.getXY(); if (t === me.triggerElement) { if (!me.hidden && me.trackMouse) { xy = me.getTargetXY(); if (me.constrainPosition) { xy = me.el.adjustForConstraints(xy, me.el.dom.parentNode); } me.setPagePosition(xy); } } else { me.hide(); me.lastActive = new Date(0); me.onTargetOver(e); } } else if ((!me.closable && me.isVisible()) && me.autoHide !== false) { me.hide(); } } });Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
7 Mar 2011 12:52 AM #7
Hi,
Yes, it works. Just notice one more thing: the tooltip is hidden after mouse click (click anywhere)
-
7 Mar 2011 4:06 AM #8
The behaviour is the same in 3.x, I think it's fairly reasonable for that to be the case. They won't hide if you specify the closable option.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
7 Mar 2011 4:14 AM #9
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Ext.ToolTip setPagePosition() doesn't work Why ?
By samotnik in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 8 Jun 2010, 2:57 AM -
autoHide:false not working for tooltip--bug??
By John Mathew in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 27 Jul 2009, 6:00 PM -
[CLOSED][2.??] Ext.grid.RowNumberer sortable option doesn't work
By wtfowned in forum Ext 2.x: BugsReplies: 3Last Post: 15 Dec 2008, 10:40 PM -
[1.2]Cell tooltip doesn't work in Table (was OK in 1.1.4)
By zsulkins in forum Ext GWT: Bugs (1.x)Replies: 0Last Post: 3 Dec 2008, 1:19 AM


Reply With Quote