Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    9
    Vote Rating
    0
    xymovie is on a distinguished road

      0  

    Default [4.0.2a, 4.0.1] ToolTip error with config { anchor: 'bottom', anchorToTarget: false}

    [4.0.2a, 4.0.1] ToolTip error with config { anchor: 'bottom', anchorToTarget: false}


    When using ToolTip with anchor(arrow pointing) on mouse pointer (without target), it throws an exception.
    The code works on ExtJs 3.x

    anchor : String
    If specified, indicates that the tip should be anchored to a particular side of the target element or mouse pointer ("top", "right", "bottom", or "left"), with an arrow pointing back at the target or mouse pointer. If constrainPosition is enabled, this will be used as a preferred value only and may be flipped as needed.
    Test code:
    Code:
       var tip = Ext.create('Ext.tip.ToolTip', {
            html: 'Test ToolTip anchor....',
            autoHide: false,
            anchor: 'bottom',
            anchorToTarget: false
        });
        tip.showAt(200, 100);
    Error message on Chrome 12 (failed on Firefox 3.6.18 as well):
    Code:
    • Uncaught TypeError: Cannot read property '0' of undefined
      • Ext.define.getTargetXYext-all-debug.js:37744
      • Ext.define.showext-all-debug.js:37973
      • Ext.define.showAtext-all-debug.js:26945
      • Base.callParentext-all-debug.js:2700
      • Ext.define.showAtext-all-debug.js:37579
      • Base.callParentext-all-debug.js:2700
      • Ext.define.showAtext-all-debug.js:37992
      • (anonymous function)test.js:192
      • isEventext-all-debug.js:10138
      • callext-all-debug.js:10094
    Code:
       getTargetXY: function() {
            var me = this,
                mouseOffset;
            if (me.delegate) {
                me.anchorTarget = me.triggerElement;
            }
            if (me.anchor) {
                me.targetCounter++;
                    var offsets = me.getOffsets(),
                        xy = (me.anchorToTarget && !me.trackMouse) ? me.el.getAlignToXY(me.anchorTarget, me.getAnchorAlign()) : me.targetXY,
                        dw = Ext.core.Element.getViewWidth() - 5,
                        dh = Ext.core.Element.getViewHeight() - 5,
                        de = document.documentElement,
                        bd = document.body,
                        scrollX = (de.scrollLeft || bd.scrollLeft || 0) + 5,
                        scrollY = (de.scrollTop || bd.scrollTop || 0) + 5,
                        axy = [xy[0] + offsets[0], xy[1] + offsets[1]], //xy is undefined
                        sz = me.getSize(),
                        constrainPosition = me.constrainPosition;
    

  2. #2

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    14
    Vote Rating
    1
    KartoPete is on a distinguished road

      0  

    Default Anchored ToolTip on screen click

    Anchored ToolTip on screen click


    Have you found any solution for this? The other patch above is for 3.x.
    I really fight with an anchored ToolTip to point to a click on the screen, but as soon as I use the anchor it will fail with the same error describes above. I use Ext 4..0.2a.
    Any help is most welcome.
    Pete

  4. #4
    Sencha User
    Join Date
    Jun 2011
    Posts
    9
    Vote Rating
    0
    xymovie is on a distinguished road

      0  

    Default


    Quote Originally Posted by KartoPete View Post
    Have you found any solution for this? The other patch above is for 3.x.
    I really fight with an anchored ToolTip to point to a click on the screen, but as soon as I use the anchor it will fail with the same error describes above. I use Ext 4..0.2a.
    Any help is most welcome.
    Pete
    Try this:
    try {
    tip.showAt(p);
    } catch (err) {
    tip.showAt(p);
    }

Thread Participants: 1

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..."