Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-6693 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Jul 2011
    Posts
    109
    Vote Rating
    4
    john76543 is an unknown quantity at this point

      0  

    Default Tooltip in menu - exception

    Tooltip in menu - exception


    With quicktips disabled (no call to Ext.tip.QuickTipManager.init()), but a 'tooltip' field set on my menu button, I get an exception when clicking the menu button. It's thrown in showmenu:

    Code:
    // from 4.1.1 RC2
    showMenu: function() {
            var me = this;
            if (me.rendered && me.menu) {
                if (me.tooltip && me.getTipAttr() != 'title') {
                    Ext.tip.QuickTipManager.getQuickTip().cancelShow(me.btnEl); // BANG
                }
                if (me.menu.isVisible()) {
                    me.menu.hide();
                }
    
    
                me.menu.showBy(me.el, me.menuAlign, ((!Ext.isStrict && Ext.isIE) || Ext.isIE6) ? [-2, -2] : undefined);
            }
            return me;
        },
    Is this a bug?

  2. #2
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,344
    Vote Rating
    249
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      0  

    Default


    Out of curiosity, why would you have a tooltip property set if you have QuickTips disabled?

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2011
    Posts
    109
    Vote Rating
    4
    john76543 is an unknown quantity at this point

      0  

    Default


    I want my app to work on iPad's as well as desktop, and tooltips screw up touch responses (I have to double-touch, weird!). Turning them off fixes it.

    So I retain all my 'tooltip' configs, and just don't setup QuickTip centrally if the client is an iPad. It works fine for everything except menu buttons - everything else tolerates a tooltip config without an error.

    I worked around the problem for menu buttons by just doing:

    Code:
    tooltip: (isTablet ? null : "Tooltip message here")
    but I think the inconsistent behaviour is a bug.

  4. #4
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,344
    Vote Rating
    249
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      0  

    Default


    A quick look at the code suggests that this isn't new in 4.1.1 RC2, it's been there since 4.0.7 at least.

    I'm inclined to agree that it needs fixing though, it makes component reuse across different applications more difficult. I'll move this thread to the bugs forum.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar