1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    21
    Vote Rating
    0
    tmgrube is on a distinguished road

      0  

    Default Unanswered: setMasked not displaying spinner or message

    Unanswered: setMasked not displaying spinner or message


    I'm displaying a loading message like this while fetching data:

    Ext.Viewport.setMasked({message: 'Loading...'});

    After I create my production version with the sencha app build production command, the setMasked function disables the page but no longer shows the spinner icon or the loading message. What am I doing wrong?

  2. #2
    Sencha User grgur's Avatar
    Join Date
    Aug 2007
    Location
    Split, Croatia
    Posts
    155
    Answers
    10
    Vote Rating
    24
    grgur has a spectacular aura about grgur has a spectacular aura about

      0  

    Default


    You should specify the xtype for the mask. This will do the job:

    Code:
    Ext.Viewport.setMasked({
           xtype: 'loadmask',
           message: 'Loading..'
    });
    Grgur Grisogono
    Ext JS in Action SE co-author
    Exercising awesomeness at Modus Create - Official Sencha Partner

    Get in touch for Sencha Touch Training
    @ggrgur

  3. #3
    Sencha User jsveron23's Avatar
    Join Date
    Feb 2011
    Location
    Seoul, Korea
    Posts
    78
    Answers
    1
    Vote Rating
    1
    jsveron23 is on a distinguished road

      1  

    Default


    sass

    add this

    @include sencha-loading-spinner;

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    82
    Answers
    5
    Vote Rating
    1
    markevans is on a distinguished road

      0  

    Default


    Thanks. That's what I was looking for.