1. #1
    Sencha User
    Join Date
    Nov 2008
    Location
    Lyon, France
    Posts
    215
    Vote Rating
    5
    christophe.geiser will become famous soon enough

      0  

    Default qtip registered with QuickTipManager not displayed

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,645
    Vote Rating
    816
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Can I get a test case? I'm not seeing an error in a simple test.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1