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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Vote Rating
    1391
      0  

    Default

    Can I get a test case? I'm not seeing an error in a simple test.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •