Results 1 to 3 of 3

Thread: Error in doEnsureBufferZone

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Join Date
    Dec 2015
    Posts
    10
    Vote Rating
    0
      0  

    Default Error in doEnsureBufferZone

    I am working with dataview plugins and when i use
    Code:
    listpaging: {
                autoPaging: true
            }
    
    there is some error:
    HTML Code:
    ext-modern-all-debug…557826002120:118435 [COLOR=var(--error-text-color)  !important]Uncaught TypeError: Cannot read property 'getBox' of undefined    at constructor.doEnsureBufferZone (ext-modern-all-debug…557826002120:118435)    at constructor.syncState (ext-modern-all-debug…557826002120:118474)    at constructor.onStoreLoad (ext-modern-all-debug…557826002120:118364)    at constructor.fire (ext-modern-all-debug…1557826002120:14590)    at constructor.doFireEvent (ext-modern-all-debug…1557826002120:15328)    at constructor.prototype.doFireEvent (ext-modern-all-debug…1557826002120:41798)    at constructor.fireEventArgs (ext-modern-all-debug…1557826002120:15235)    at constructor.fireEvent (ext-modern-all-debug…1557826002120:15206)    at constructor.onProxyLoad (ext-modern-all-debug…1557826002120:57883)    at constructor.callParent (ext-modern-all-debug…=1557826002120:9038)[/COLOR]
    Code:
     doEnsureBufferZone: function() {            var me = this,
                    list = me.cmp,
                    store = list.getStore(),
                    scroller = list.getScrollable(),
                    count = store && store.getCount(),
                    bufferZone = me.getBufferZone(),
                    item, box, y, index;
                if (!store || !count || !scroller || me.getLoading()) {
                    return;
                }
                index = Math.min(Math.max(0, count - bufferZone), count - 1);
                item = list.mapToItem(store.getAt(index));
                box = item && item.element.getBox();
                if (!box) {
                    return;
                }
    When i change line

    box = item && item.element.getBox(); -> box = item && item.el.getBox();

    all works fine. Is it problem ?

    Thanks Josef.
    ext-modern-all-debug…557826002120:118435
    [COLOR=var(--error-text-color) !important]Uncaught TypeError: Cannot read property 'getBox' of undefined at constructor.doEnsureBufferZone (ext-modern-all-debug…557826002120:118435) at constructor.syncState (ext-modern-all-debug…557826002120:118474) at constructor.onStoreLoad (ext-modern-all-debug…557826002120:118364) at constructor.fire (ext-modern-all-debug…1557826002120:14590) at constructor.doFireEvent (ext-modern-all-debug…1557826002120:15328) at constructor.prototype.doFireEvent (ext-modern-all-debug…1557826002120:41798) at constructor.fireEventArgs (ext-modern-all-debug…1557826002120:15235) at constructor.fireEvent (ext-modern-all-debug…1557826002120:15206) at constructor.onProxyLoad (ext-modern-all-debug…1557826002120:57883) at constructor.callParent (ext-modern-all-debug…=1557826002120:9038)[/COLOR]

  2. #2
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    427
    Vote Rating
    -309
      0  

    Default

    Hello Josef,

    Thank you for contacting Sencha Support!

    I request you to provide a fiddle to be able to reproduce the issue and assist you in a better way.

    Regards,
    Kumar.
    Sencha Support

  3. #3

Posting Permissions

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