1. #1
    Sencha User riyaad's Avatar
    Join Date
    Jul 2011
    Location
    Cape Town
    Posts
    240
    Answers
    6
    Vote Rating
    1
    riyaad is on a distinguished road

      0  

    Default Answered: LoadMask is not destroyed in ST2.1

    Answered: LoadMask is not destroyed in ST2.1


    Hi guys,

    For some odd reason the loadmask is not set to false after the given time in ST2.1.
    Any ideas why?


    Code:
                            Ext.Viewport.setMasked({
                                xtype: 'loadmask',
                                message: 'Updating, please wait...'
                            });
    
    
                            logThis('Spinnies);
    
    
                            setTimeout(function() {
                                Ext.Viewport.getActiveItem().setMasked(false);
                            }, 500);
    Regards
    Riyaad

  2. You should keep the targets of setMasked() persistent. Try this.

    Code:
    setTimeout(function() {
            Ext.Viewport.setMasked(false);
    }, 500);

  3. #2
    Sencha User
    Join Date
    Nov 2011
    Location
    England
    Posts
    135
    Answers
    11
    Vote Rating
    7
    george.m is on a distinguished road

      0  

    Default


    You should keep the targets of setMasked() persistent. Try this.

    Code:
    setTimeout(function() {
            Ext.Viewport.setMasked(false);
    }, 500);

  4. #3
    Sencha User riyaad's Avatar
    Join Date
    Jul 2011
    Location
    Cape Town
    Posts
    240
    Answers
    6
    Vote Rating
    1
    riyaad is on a distinguished road

      0  

    Default


    Bows head in shame.....*sigh*
    Thank you

  5. #4
    Sencha User
    Join Date
    Nov 2011
    Location
    England
    Posts
    135
    Answers
    11
    Vote Rating
    7
    george.m is on a distinguished road

      0  

    Default


    You're welcome.

Thread Participants: 1