Results 1 to 8 of 8

Thread: two loadmasks conflict

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    18
    Vote Rating
    0
      0  

    Default Answered: two loadmasks conflict

    Hi,

    i have two load masks for panels:

    Code:
    window.pieChartMask = new Ext.LoadMask(Ext.get('piechartCmp'), {msg:'Please wait...'});
    window.lineChartMask = new Ext.LoadMask(Ext.get('chartCmp'),{msg:'Please wait...'});
    when i try to do
    Code:
    pieChartMask.show();
    lineChartMask.show();
    pieChartMask disappears.
    Why is so?
    May be additional parametr missing?
    Second two lines I call in listeners so I need to use "window." before object.

  2. In 4.0.7, the load masks are shared. In what will be 4.1.0 beta 1 this has been changed.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,335
    Answers
    3884
    Vote Rating
    1297
      0  

    Default

    In 4.0.7, the load masks are shared. In what will be 4.1.0 beta 1 this has been changed.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    18
    Vote Rating
    0
      0  

    Default

    That's good.
    I hope mask will follow the window too, because if you minimize window during loading mask remains on screen.

  5. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,335
    Answers
    3884
    Vote Rating
    1297
      0  

    Default

    Quote Originally Posted by jimswers View Post
    That's good.
    I hope mask will follow the window too, because if you minimize window during loading mask remains on screen.
    It sure does
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  6. #5
    Sencha User
    Join Date
    Dec 2011
    Posts
    18
    Vote Rating
    0
      0  

    Default

    That would be nice if we have something like:

    Code:
    win = Ext.getCmp('win-id');
    win.enableMask();
    now I use

    Code:
    win.disable();

  7. #6
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,747
    Answers
    130
    Vote Rating
    129
      0  

    Default

    Code:
    window.getEl().mask();
    should do the trick (untested). You can also try getBody() to only mask the content.
    Best regards
    Tobias Uhlig

  8. #7
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,335
    Answers
    3884
    Vote Rating
    1297
      0  

    Default

    Quote Originally Posted by tobiu View Post
    Code:
    window.getEl().mask();
    should do the trick (untested). You can also try getBody() to only mask the content.
    There is no getBody method on the Ext.window.Window. You can do:

    Code:
    win.body.mask();
    The downside to that is if you have any dockedItems, it won't mask it.

    Code:
    win.getEl().mask();
    //or
    win.el.mask();
    Would work and in 4.1.0 beta 1, if you have the Window set as modal, the modal mask and the mask you place on the el will stay. In 4.0.7, once you mask() on the window's el, the modal mask will disappear.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  9. #8
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,747
    Answers
    130
    Vote Rating
    129
      0  

    Default

    Mitchell, you are right. The getter is called:
    Code:
        // private
        getContentTarget: function() {
            return this.body;
        }
    Not a good choise regarding naming conventions...
    Best regards
    Tobias Uhlig

Posting Permissions

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