Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Ext JS Premium Member robincasey's Avatar
    Join Date
    Nov 2007
    Location
    Netherlands, Arnhem
    Posts
    53
    Vote Rating
    0
    robincasey is on a distinguished road

      0  

    Default [4.0.6] DirectStore loadMask hacks bugging

    [4.0.6] DirectStore loadMask hacks bugging


    There are some //hacks (I believe related to [EXTJSIV-3638]), which are not working well. - This was not issueing in 4.0.2a.

    [strike]In my setup, I have an East Region holding 3 children with Flex. The 2nd child is a Grid with an autoLoaded DirectStore. There now is a mask that will not remove after the store has loaded. Also is it displaying (massive) mispositioning.[/strike]


    I have no clue what's going on here

    I can only remove the mask from the store if I call the mask() on it, and only then the unmask() works.

    Even when overwriting these methods, its masking:
    Ext.data.Store.prototype.mask = Ext.emptyFn;
    Ext.data.Store.prototype.unmask = Ext.emptyFn;


    I cannot provide code/testcase for this.
    Last edited by robincasey; 4 Oct 2011 at 12:39 PM. Reason: Added unmask() then mask() info
    onerror = setTimeout(Ext.emptyFn, Infinity)

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,854
    Vote Rating
    610
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    I have no clue what's going on here
    Without being able to see some code, neither do I!
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext JS Premium Member robincasey's Avatar
    Join Date
    Nov 2007
    Location
    Netherlands, Arnhem
    Posts
    53
    Vote Rating
    0
    robincasey is on a distinguished road

      0  

    Default


    The needed mask() call is needed as unmask() needs masked = true to be set. Somehow this seems not to be set in this case.
    As the Store.js 4.0.6 code contains new //HACKS for loadMask support, I am trusting somebody will review these again.

    I will later (shortly) look into a code example, but rather only spend time on this when this Ext code "looks final".
    onerror = setTimeout(Ext.emptyFn, Infinity)

  4. #4
    Ext JS Premium Member robincasey's Avatar
    Join Date
    Nov 2007
    Location
    Netherlands, Arnhem
    Posts
    53
    Vote Rating
    0
    robincasey is on a distinguished road

      0  

    Default


    Quote Originally Posted by evant View Post
    Without being able to see some code, neither do I!
    Okay, found the trigger for my issue. The panel holding the grid is rendered with hidden:true. This creates an issue when the store is loaded, resulting the loadmask not to be removed. This is revealed when the panel becomes unhidden.

    FYI: I have borderLayout > collapsible east > collapsible gridpanel (2nd child of 3 flex items) > directstore with autoload
    onerror = setTimeout(Ext.emptyFn, Infinity)

Thread Participants: 1