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,556
    Answers
    3931
    Vote Rating
    1272
      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! Checkout the CODE tag!

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

  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,556
    Answers
    3931
    Vote Rating
    1272
      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! Checkout the CODE tag!

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

  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,750
    Answers
    130
    Vote Rating
    128
      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,556
    Answers
    3931
    Vote Rating
    1272
      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! Checkout the CODE tag!

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

  9. #8
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,750
    Answers
    130
    Vote Rating
    128
      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
  •