Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Apr 2007
    Posts
    160
    Vote Rating
    0
    vladsch is on a distinguished road

      0  

    Default [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

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,499
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Go to /test/ui/qtips/qtips.html

    Hover over the "Bsic Tooltip" button. The tooltip appears, and after 5000ms, it autoHides.

  3. #3
    Sencha User
    Join Date
    Apr 2007
    Posts
    160
    Vote Rating
    0
    vladsch is on a distinguished road

      0  

    Default


    Hi,

    Sorry, it was mistyping, i meant autoHide:false, tooltip always hide after move out from a target

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,499
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    It works here. I change that first one to use autoHide: false, and it doesn't hide.

  5. #5
    Sencha User
    Join Date
    Apr 2007
    Posts
    160
    Vote Rating
    0
    vladsch is on a distinguished road

      0  

    Default


    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. #6
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,800
    Vote Rating
    603
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    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. #7
    Sencha User
    Join Date
    Apr 2007
    Posts
    160
    Vote Rating
    0
    vladsch is on a distinguished road

      0  

    Default


    Hi,

    Yes, it works. Just notice one more thing: the tooltip is hidden after mouse click (click anywhere)

  8. #8
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,800
    Vote Rating
    603
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    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!

  9. #9
    Sencha User
    Join Date
    Apr 2007
    Posts
    160
    Vote Rating
    0
    vladsch is on a distinguished road

      0  

    Default


    Thanks

Similar Threads

  1. Ext.ToolTip setPagePosition() doesn't work Why ?
    By samotnik in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 8 Jun 2010, 2:57 AM
  2. autoHide:false not working for tooltip--bug??
    By John Mathew in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 27 Jul 2009, 6:00 PM
  3. Replies: 3
    Last Post: 15 Dec 2008, 10:40 PM
  4. [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: 0
    Last Post: 3 Dec 2008, 1:19 AM

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi