Results 1 to 2 of 2

Thread: qtip registered with QuickTipManager not displayed

  1. #1
    Sencha User
    Join Date
    Nov 2008
    Location
    Lyon, France
    Posts
    234
    Vote Rating
    52
      0  

    Default qtip registered with QuickTipManager not displayed

    Hi all,
    When registered via QuickTipManager, and showed with delay, qtip are never displayed because the lookup to registered targets is not set properly in targetTextEmpty.

    Fix (QuickTips.js):
    Code:
        targetTextEmpty: function(){
            var me = this,
                target = me.activeTarget,
                cfg = me.tagConfig,
                el, text;
    
             if (target) {
                 el = target.el;
                 if (el) {
                     text = el.getAttribute(cfg.namespace + cfg.attribute);
                     // Note that the quicktip could also have been registered with the QuickTipManager.
                     // If this was the case, then we don't want to veto showing it.
                     // Simply do a lookup in the registered targets collection.
                     
                     // FIX:
                     //if (!text && !me.targets[target.target]) {
                     if (!text && !me.targets[target.target.id]) {
                     // END FIX.
    
                         return true;
                     }
                 }
             }
             return false;
        },
    
    

    Cheers,
    C

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Can I get a test case? I'm not seeing an error in a simple test.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •